summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--Makefile4
-rw-r--r--PKGBUILD25
3 files changed, 19 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e0c99beaffc..d73cc432c20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = poltroon
pkgdesc = An AUR agent for that prioritizes managing batches of packages.
- pkgver = 0.0.1
+ pkgver = 0.0.2
pkgrel = 1
url = https://github.com/ginabythebay/poltroon
arch = x86_64
arch = i686
license = MIT
- makedepends = go>=1.7
+ makedepends = go>=1.7 make
depends = pacman
options = !strip
options = !emptydirs
- source = https://github.com/ginabythebay/poltroon/archive/v0.0.1.tar.gz
- sha256sums = 875002cddf725f7277e172ac96317c17b67e18d73d1c2517a313813ae4d696c6
+ source = https://github.com/ginabythebay/poltroon/archive/v0.0.2.tar.gz
+ sha256sums = 5ee3825234c0f6d6daff320a2a49df9490de1e804b50aeea309764f1228b03a5
pkgname = poltroon
diff --git a/Makefile b/Makefile
index ad52d678294..73a15b457f7 100644
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@ all: .SRCINFO verify
clean:
rm -rf pkg
rm -rf src
- rm poltroon-*.pkg.tar.xz
- rm v*.tar.gz
+ rm -f poltroon-*.pkg.tar.xz
+ rm -f v*.tar.gz
verify:
makepkg -f
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: