diff options
author | xduugu | 2018-05-25 18:14:16 +0200 |
---|---|---|
committer | xduugu | 2018-05-25 18:14:16 +0200 |
commit | ea37904775c971bcef470bb7fb23f1aa01694ae1 (patch) | |
tree | bac7799db1c1cbbbfd2ef4d2080e7e2ee2a9f508 | |
download | aur-ea37904775c971bcef470bb7fb23f1aa01694ae1.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f30981b1aee9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = signal-backup-decode-git + pkgdesc = Decode Signal Backups + pkgver = r7.6c4fafd + pkgrel = 1 + url = https://github.com/pajowu/signal-backup-decode + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = rust + depends = openssl + depends = sqlite + provides = signal-backup-decode=r7.6c4fafd + conflicts = signal-backup-decode + source = git+https://github.com/pajowu/signal-backup-decode.git + md5sums = SKIP + +pkgname = signal-backup-decode-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..001b0d90ffd1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=signal-backup-decode-git +pkgver=r7.6c4fafd +pkgrel=1 +pkgdesc="Decode Signal Backups" +arch=('i686' 'x86_64') +url="https://github.com/pajowu/signal-backup-decode" +license=('GPL3') +depends=('openssl' 'sqlite') +makedepends=('git' 'rust') +provides=("${pkgname%-git}=$pkgver") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/pajowu/signal-backup-decode.git') +md5sums=('SKIP') + +_pkgname="${pkgname%-git}" + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$_pkgname" + cargo build --release +} + +package() { + install -Dm755 "$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname" +} |