updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / reposband-git / PKGBUILD
blobd94a8fe8bb327c90dadcfb5c3c35375fb5b54926
1 # Contributor: SaThaRiel <sathariel74[at]gmail[dot]com>
2 pkgname=reposband-git
3 pkgver=20111215
4 pkgrel=1
5 pkgdesc="Reposband is an Angband variant that attempts to recreate Posband in the latest version of V. Enjoy playing as a monster!"
6 arch=('i686' 'x86_64')
7 url="https://github.com/simongre/RePosBand"
8 depends=('ncurses' 'lesstif' 'sdl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'sdl_sound' 'libx11' 'libsm' 'gtk2')
9 makedepends=('git' 'autogen')
10 license=('GPL2' 'custom')
12 _gitname=RePosBand
13 _gitroot=https://github.com/simongre/RePosBand.git
15 build() {
16   if [ -d $srcdir/$_gitname/.git ]
17   then
18       cd $srcdir/$_gitname && git pull
19   else
20       cd $srcdir && git clone $_gitroot && cd $_gitname
21   fi
23   cd "$startdir/src/$_gitname"
24   CFLAGS=""
25   ./autogen.sh
26   ./configure \
27     --prefix=/usr \
28     --bindir=/usr/bin/ \
29     --sysconfdir=/usr/share/reposband \
30     --with-configpath=/usr/share/reposband \
31     --with-libpath=/usr/share/reposband \
32     --enable-gtk \
33     --enable-sdl \
34         --enable-sdl-mixer || return 1
35   make clean
36   make
37   make DESTDIR="$pkgdir" install
38   install -Dm644 copying.txt $pkgdir/usr/share/licenses/reposband/COPYING