diff options
author | Peter Hofmann | 2013-04-05 23:27:45 +0200 |
---|---|---|
committer | Peter Hofmann | 2013-04-05 23:45:54 +0200 |
commit | ca77e82f3dddc1de28ae338dc0950c47db51c649 (patch) | |
tree | 6f1623f9a5d80da1a86a13e2d2698d6a2160eef2 | |
parent | f4295b5f2d93d020a22ee273def6fccdf0a9518e (diff) | |
download | aur-ca77e82f3dddc1de28ae338dc0950c47db51c649.tar.gz |
Update all PKGBUILDs for pacman 4.1
As recommended on the ML, I chose not to bump the epoch.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 12 insertions, 24 deletions
@@ -1,6 +1,6 @@ pkgbase = gophcatch-git pkgdesc = Watch gopher holes and catch updates - pkgver = 20111106 + pkgver = 13.01 pkgrel = 1 url = https://github.com/vain/gophcatch arch = any @@ -9,6 +9,8 @@ pkgbase = gophcatch-git depends = curl optdepends = lynx: Needed if you want to dump new items optdepends = cron: Recommended if you want to regularly run gophcatch + source = git://github.com/vain/gophcatch.git + md5sums = SKIP pkgname = gophcatch-git @@ -1,6 +1,7 @@ # Maintainer: Vain <aurmaint1 on host: uninformativ dot de> -pkgname=gophcatch-git -pkgver=20111106 +_pkgname=gophcatch +pkgname=$_pkgname-git +pkgver=13.01 pkgrel=1 pkgdesc="Watch gopher holes and catch updates" arch=('any') @@ -12,31 +13,16 @@ optdepends=( 'lynx: Needed if you want to dump new items' 'cron: Recommended if you want to regularly run gophcatch' ) +source=(git://github.com/vain/gophcatch.git) +md5sums=('SKIP') -_gitroot="git://github.com/vain/gophcatch.git" -_gitname="master" - -build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin - msg "The local files are updated." - else - git clone "$_gitroot" "$_gitname" - fi - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" +pkgver() { + cd "$srcdir/$_pkgname" + git describe --always | sed 's|-|.|g; s|v||' } package() { - cd "$srcdir/$_gitname-build" + cd "$srcdir/$_pkgname" install -Dm755 gophcatch "$pkgdir"/usr/bin/gophcatch install -Dm644 man1/gophcatch.1 "$pkgdir"/usr/share/man/man1/gophcatch.1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |