diff options
author | wicast | 2015-08-13 23:45:00 +0800 |
---|---|---|
committer | wicast | 2015-08-13 23:45:00 +0800 |
commit | 8c8b2b2ea19ba0201ef08fb0194aba8ccedfa6fd (patch) | |
tree | 7f533c3eeac927688aa4f1a12746b5b6966792c5 /PKGBUILD | |
download | aur-8c8b2b2ea19ba0201ef08fb0194aba8ccedfa6fd.tar.gz |
Init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c8121b149542 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: philanecros <philanecros@gmail.com> + +pkgname=go-gpm +pkgver=1.3.2.r10.g7db809e +pkgrel=1 +pkgdesc="Barebones dependency manager for Go." +arch=("any") +url="https://github.com/pote/gpm" +license=('MIT') +groups=() +depends=("go") +makedepends=('git') +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +source=("$pkgname::git+https://github.com/pote/gpm.git") +md5sums=('SKIP') +noextract=() + +pkgver() { + cd "$pkgname" + # cutting off 'v' prefix that presents in the git tag + git describe --tags --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/${pkgname}" + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/${pkgname}" + # avoid conflict with existing core/gpm package + make DESTDIR="$pkgdir/" exec="go-gpm" install +} |