summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad1fdd701a33bead82526ac71fbd2b8b0252c63f (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
36
37
38
# Maintainer: Tim Lagnese tim@inept.tech

pkgname=gameoftrees-git
pkgver=r4815.8e396e19
pkgrel=1
pkgdesc="A version control system which prioritizes ease of use and simplicity over flexibility."
arch=('x86_64')
url="http://gameoftrees.org/"
license=('ISC')
depends=('ncurses' 'libmd' 'util-linux-libs' 'zlib' 'libbsd' 'libevent')
makedepends=('pkgconf' 'git')
conflicts=('got' 'got-bin' 'got-git')
source=('gameoftrees::git+https://git.gameoftrees.org/got-portable.git#branch=linux')
sha256sums=('SKIP')

pkgver()
{
  cd "${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/${pkgname%-git}"

  autoreconf -i
  ./configure --prefix=/usr --sbindir=/usr/bin --libexecdir=/usr/lib/$pkgname
  make
}

package() {
  cd "$srcdir/${pkgname%-git}"

  make DESTDIR="$pkgdir/" install
  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "$srcdir/${pkgname%-git}/LICENCE"
}

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