summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44968409b2bf4fa01b2d57786f5e14353822a0c0 (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
# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
_pkgname=gitary
pkgname=$_pkgname-git
pkgver=16.08.10.g9bb0c70
pkgrel=1
pkgdesc="A diary using git as its backend"
arch=('any')
url='http://www.uninformativ.de/projects/?q=gitary'
license=('custom:PIZZA-WARE')
makedepends=('git')
depends=('git')
optdepends=(
  'vim: A reasonable editor, syntax files are provided'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(git://github.com/vain/gitary.git)
md5sums=('SKIP')

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

package() {
  cd "$srcdir/$_pkgname"

  install -Dm755 gitary "$pkgdir"/usr/bin/gitary
  install -Dm644 man1/gitary.1 "$pkgdir"/usr/share/man/man1/gitary.1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

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