summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 958a28f33216e43819da98d7e3d17f850902d948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: Baptiste Grenier <baptiste@bapt.name>

pkgname=asanawarrior
pkgver=1.0
pkgrel=1
pkgdesc="The only Asana command line interface you'll ever need. https://wiki.dgraph.io/Asanawarrior"
arch=('x86_64' 'i686')
url="https://github.com/manishrjain/asanawarrior"
license=('apache')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("https://github.com/manishrjain/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('db409b9d4b2be31e229dabba840664c0323f02af1fd804c659541b27e0e33d97')
_gourl=github.com/manishrjain/asanawarrior

build() {
  cd "$pkgname-$pkgver"
  GOPATH="$srcdir" go get -fix -v -x ${_gourl}
  GOPATH="$srcdir" go build
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname"
}

# vim:set ts=2 sw=2 et: