summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 13 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5c6ed29211d..1e9d5e3acf6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,35 @@
# Maintainer: Gina White <ginabytheabay@gmail.com>
pkgname=poltroon
-pkgver=0.0.1
+pkgver=0.0.2
pkgrel=1
pkgdesc="An AUR agent for that prioritizes managing batches of packages."
arch=('x86_64' 'i686')
url="https://github.com/ginabythebay/poltroon"
license=('MIT')
depends=('pacman')
-makedepends=('go>=1.7')
+makedepends=('go>=1.7 make')
options=('!strip' '!emptydirs')
source=("https://github.com/ginabythebay/$pkgname/archive/v$pkgver.tar.gz")
-sha256sums=('875002cddf725f7277e172ac96317c17b67e18d73d1c2517a313813ae4d696c6')
+sha256sums=('5ee3825234c0f6d6daff320a2a49df9490de1e804b50aeea309764f1228b03a5')
_gourl=github.com/ginabythebay/poltroon
build() {
- mkdir -p "$srcdir"/src/github.com/ginabythebay
- ln -sf "$srcdir/$pkgname-$pkgver" "$srcdir/src/$_gourl"
+ mkdir -p "$srcdir/go/src/github.com/ginabythebay"
+ mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/$_gourl"
- export GOPATH="$srcdir"
- cd $srcdir/src/${_gourl}/
- go install ./...
+ export GOPATH="$srcdir/go"
+ cd $srcdir/go/src/${_gourl}/
+
+ make
+
+ $GOPATH/bin/$pkgname --licenses > ALL_LICENSES
}
package() {
- cd "$pkgname-$pkgver"
-
- install -Dm 755 "$srcdir/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm 755 "$srcdir/go/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/go/src/${_gourl}/ALL_LICENSES" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et: