summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d710761d899a3c19003921d5ce8d67e09b37f265 (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
39
# Maintainer: mlq <mlq@pwmt.org>

pkgname=termbox-git
pkgver=r230.707f62e
pkgrel=1
pkgdesc="termbox library (ncurses alternative)"
arch=('i686' 'x86_64')
url="http://code.google.com/p/termbox/"
license=('custom')
makedepends=('git' 'python')
depends=('glibc')
source=('termbox::git+https://github.com/nsf/termbox.git')
sha1sums=('SKIP')
_gitname='termbox'
conflicts=('termbox')
provides=('termbox')
options=(staticlibs)

prepare() {
  cd "$srcdir/$_gitname"
  ./waf configure --prefix=/usr
}

build() {
  cd "$srcdir/$_gitname"
  ./waf
}

package() {
  cd "$srcdir/$_gitname"
  ./waf install --destdir=$pkgdir
}

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

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