diff options
author | aksr | 2016-05-04 10:52:33 +0200 |
---|---|---|
committer | aksr | 2016-05-04 10:52:33 +0200 |
commit | 3009508e6d6136328ff9bbd32900ab4fa145d7d8 (patch) | |
tree | 07306af0df14eacd18b3d5ab9e62f641b7eb9551 | |
download | aur-watchgopher-git.tar.gz |
Start.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..eb88e62b964d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Wed May 4 08:52:33 UTC 2016 +pkgbase = watchgopher-git + pkgdesc = Watch a directory for changes + pkgver = r80.2ea7166 + pkgrel = 1 + url = https://github.com/mrnugget/watchgopher + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = go + conflicts = watchgopher + +pkgname = watchgopher-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..de06013ad426 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: aksr <aksr at t-com dot me> +pkgname=watchgopher-git +pkgver=r80.2ea7166 +pkgrel=1 +epoch= +pkgdesc="Watch a directory for changes" +arch=('i686' 'x86_64') +url="https://github.com/mrnugget/watchgopher" +license=('MIT') +groups=() +depends=('') +makedepends=('git' 'go') +optdepends=() +checkdepends=() +provides=() +conflicts=('watchgopher') +replaces=() +backup=() +options=() +changelog= +install= +noextract=() +_gourl=github.com/mrnugget/watchgopher + +pkgver() { + GOPATH="$srcdir" go get -d ${_gourl} + cd "$srcdir/src/${_gourl}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + GOPATH="$srcdir" go get -fix -v ${_gourl} +} + +check() { + GOPATH="$srcdir" go test -v -x ${_gourl} +} + +package() { + cd "$srcdir" + install -Dm755 bin/watchgopher "$pkgdir/usr/bin/watchgopher" + install -Dm644 src/${_gourl}/LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE + install -Dm644 src/${_gourl}/README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md + cp -r src/${_gourl}/examples $pkgdir/usr/share/doc/${pkgname%-*}/ +} + |