summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22291bea9aad7ced2cf9aec5d7f066969894a8d2 (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
# Maintainer: Edward Hernández <ehernandez@email.wm.edu>
# Contributor:  Quint Guvernator <quint@guvernator.net>

pkgname=fenix-git
_pkgname=fenix
pkgver=r1.e517992
pkgrel=1
pkgdesc="respawn a process unless the user really wants to quit"
url="http://github.com/syntactician/fenix"
arch=('i686' 'x86_64')
license=('Artistic2.0')
makedepends=('git')
source=("$_pkgname::git+https://github.com/syntactician/fenix")
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  (
    set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd $_pkgname
  install -Dt "$pkgdir/usr/share/doc/$pkgname" -m644 README.md ORIGINAL
  install -Dt "$pkgdir/usr/bin" fenix
}

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