diff options
author | Barnaby Gray | 2016-04-10 10:39:24 +0100 |
---|---|---|
committer | Barnaby Gray | 2016-04-10 10:39:24 +0100 |
commit | bfaceb492cef809db4292e46a67e89a28bab765b (patch) | |
tree | 094d498434d310710cbb7e1841396aa004077693 | |
parent | e81e61cc9dc70f4b7eaa7d99072b8b33b4103320 (diff) | |
download | aur-bfaceb492cef809db4292e46a67e89a28bab765b.tar.gz |
Fix build
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -6,13 +6,16 @@ pkgdesc="Command line tool for Amazon Route 53" arch=('i686' 'x86_64') license=('BSD') depends=() -makedepends=('go') +makedepends=('go>=1.5', 'make') source=("https://github.com/barnybug/cli53/archive/$pkgver.tar.gz") sha256sums=('87233f01795194e87a0f906309e273ca1e38e2313b2272c5bef27eb905543d99') build() { - cd "$srcdir/$pkgname-$pkgver" - go build -ldflags "-X github.com/barnybug/cli53.version=$pkgver" ./cmd/cli53 + export GOPATH="$srcdir" + mkdir -p "$srcdir/src/github.com/barnybug" + ln -s "$srcdir/$pkgname-$pkgver" "$srcdir/src/github.com/barnybug/cli53" + cd "$srcdir/src/github.com/barnybug/cli53" + make build } package() { |