blob: 290d7524973b7549fe983f45b2f8de3ef6e5dbda (
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
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: Gina White <ginabytheabay@gmail.com>
pkgname=poltroon
pkgver=0.1.0
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 make go-bindata>=3.0.7 libunistring>=0.9.6-2 gcc')
options=('!strip' '!emptydirs')
source=("https://github.com/ginabythebay/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('0a728594aa7466a3d9ceeac87871025725ab4e380beef0455bd389efa1e16104')
_gourl=github.com/ginabythebay/poltroon
build() {
mkdir -p "$srcdir/go/src/github.com/ginabythebay"
rm -rf "$srcdir/go/src/$_gourl" # just in case we run this twice
mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/$_gourl"
export GOPATH="$srcdir/go"
cd $srcdir/go/src/${_gourl}/
make
$GOPATH/bin/$pkgname --licenses > ALL_LICENSES
}
package() {
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:
|