summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c6ed29211dc9a8d636541096cf587c5f4251b02 (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
# Maintainer: Gina White <ginabytheabay@gmail.com>

pkgname=poltroon
pkgver=0.0.1
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')
options=('!strip' '!emptydirs')
source=("https://github.com/ginabythebay/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('875002cddf725f7277e172ac96317c17b67e18d73d1c2517a313813ae4d696c6')

_gourl=github.com/ginabythebay/poltroon

build() {
  mkdir -p "$srcdir"/src/github.com/ginabythebay
  ln -sf "$srcdir/$pkgname-$pkgver" "$srcdir/src/$_gourl"

  export GOPATH="$srcdir"
  cd $srcdir/src/${_gourl}/
  go install ./...
}

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

  install -Dm 755 "$srcdir/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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