summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoreta2019-07-03 17:08:01 +0100
committereta2019-07-03 17:09:35 +0100
commitde13daa2a75c64f51ec19ed2510b897327f85289 (patch)
tree255ca7430c7df218b95313be1995222aacaff0de /PKGBUILD
downloadaur-sms-irc-git.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b7f7c81a265
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: eta <eta@theta.eu.org>
+pkgname=sms-irc-git
+pkgver=r138.e62a533
+pkgrel=1
+pkgdesc="A WhatsApp Web and SMS bridge for internet relay chat (IRC)."
+arch=('x86_64')
+url="https://git.theta.eu.org/sms-irc.git/about/"
+license=('AGPL3')
+depends=('postgresql-libs')
+makedepends=('rust' 'cargo')
+provides=('sms-irc')
+conflicts=('sms-irc')
+backup=('etc/sms-irc.conf')
+optdepends=('inspircd: IRC server to bridge into')
+options=()
+changelog=
+source=('git+https://git.theta.eu.org/sms-irc.git/')
+md5sums=('SKIP')
+noextract=()
+_gitname="sms-irc"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ install -Dm644 config.example.toml "$pkgdir/etc/sms-irc.conf"
+ cargo install --path . --root="$pkgdir/usr" --locked
+ rm "$pkgdir/usr/.crates.toml"
+}