1 # Maintainer: mlq <mlq@pwmt.org>
6 pkgdesc="termbox library (ncurses alternative)"
8 url="http://code.google.com/p/termbox/"
10 makedepends=('git' 'cmake')
12 _gitroot='git://github.com/nsf/termbox.git'
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone $_gitroot $_gitname
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
36 install -D -m664 termbox.h "$pkgdir/usr/include/termbox.h"
37 install -D -m664 libtermbox.a "$pkgdir/usr/lib/libtermbox.a"