diff options
author | Baptiste Grenier | 2017-10-10 12:10:18 +0200 |
---|---|---|
committer | Baptiste Grenier | 2017-10-10 12:10:18 +0200 |
commit | bfbeaeb225216c93811cba83e64e24ad4604e0fd (patch) | |
tree | 50fe42cf79149c90f129c1acd64de23766c5aa98 | |
download | aur-bfbeaeb225216c93811cba83e64e24ad4604e0fd.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c3ea6c0c98f1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = asanawarrior-git + pkgdesc = The only Asana command line interface you'll ever need. + pkgver = VERSION + pkgrel = 1 + url = https://github.com/manishrjain/asanawarrior + arch = x86_64 + arch = i686 + license = apache + makedepends = go + provides = asanawarrior + conflicts = asanawarrior + options = !strip + options = !emptydirs + source = asanawarrior::git+http://github.com/manishrjain/asanawarrior#branch=master + sha256sums = SKIP + +pkgname = asanawarrior-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..dc0dd1fcb0b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Baptiste Grenier <baptiste@bapt.name> + +_pkgname=asanawarrior +pkgname=asanawarrior-git +pkgver=VERSION +pkgrel=1 +pkgdesc="The only Asana command line interface you'll ever need." +arch=('x86_64' 'i686') +url='https://github.com/manishrjain/asanawarrior' +provides=('asanawarrior') +conflicts=('asanawarrior') +license=('apache') +makedepends=('go') +options=('!strip' '!emptydirs') +source=("$_pkgname::git+http://github.com/manishrjain/$_pkgname#branch=master") +noextract=() +sha256sums=('SKIP') +_gourl=github.com/manishrjain/asanawarrior + +pkgver() { + cd "$_pkgname" + # Get the version number. + printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" +} + +build() { + cd "$_pkgname" + GOPATH="$srcdir" go get -fix -v -x ${_gourl} + GOPATH="$srcdir" go build +} + +package() { + cd "$_pkgname" + + install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname" +} + +# vim:set ts=2 sw=2 et: |