diff options
author | xduugu | 2018-04-18 22:32:06 +0200 |
---|---|---|
committer | xduugu | 2018-04-18 22:32:06 +0200 |
commit | 4d70bae571b601346f4e246e8d3bf87a29312e3b (patch) | |
tree | 39750b53a0bb3eda5806e021f7f926a13fcdadd7 | |
download | aur-4d70bae571b601346f4e246e8d3bf87a29312e3b.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..79bdafdd1afd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = signal-back-git + pkgdesc = Decrypt Signal encrypted backups outside the app + pkgver = 0.1.0.r0.29fcf29 + pkgrel = 1 + url = https://github.com/xeals/signal-back + arch = x86_64 + license = Apache + makedepends = dep + makedepends = git + makedepends = go-pie + provides = signal-back=0.1.0.r0.29fcf29 + conflicts = signal-back + source = git+https://github.com/xeals/signal-back.git + md5sums = SKIP + +pkgname = signal-back-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8acb49fc133a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +pkgname=signal-back-git +pkgver=0.1.0.r0.29fcf29 +pkgrel=1 +pkgdesc="Decrypt Signal encrypted backups outside the app" +arch=('i686' 'x86_64') +url="https://github.com/xeals/signal-back" +license=('Apache') +makedepends=('dep' 'git' 'go-pie') +provides=("${pkgname%-git}=$pkgver") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/xeals/signal-back.git') +md5sums=('SKIP') + +_pkgname="${pkgname%-git}" + +pkgver() { + cd "$srcdir/src/github.com/xeals/$_pkgname" + printf "%s" "$(git describe --tags --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + +prepare() { + rm -rf -- src/github.com/xeals + mkdir -p src/github.com/xeals + mv "$_pkgname" src/github.com/xeals/ +} + +build() { + export GOPATH="$srcdir" + cd "$GOPATH/src/github.com/xeals/$_pkgname" + dep ensure + go build . +} + +package() { + install -Dm755 "$srcdir/src/github.com/xeals/$_pkgname/$_pkgname" "$pkgdir/usr/bin/$_pkgname" +} |