summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9592581a6806dff8287828e1679fdf5a5ccefb48 (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
# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
_pkgname=gophcatch
pkgname=$_pkgname-git
pkgver=13.01
pkgrel=1
pkgdesc="Watch gopher holes and catch updates"
arch=('any')
url="https://github.com/vain/gophcatch"
license=('custom:PIZZA-WARE')
depends=('curl')
makedepends=('git')
optdepends=(
  'lynx: Needed if you want to dump new items'
  'cron: Recommended if you want to regularly run gophcatch'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(git://github.com/vain/gophcatch.git)
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --always | sed 's|-|.|g; s|v||'
}

package() {
  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"
  install -Dm644 gocrc-example \
    "$pkgdir"/usr/share/doc/gophcatch/gocrc-example
}

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