updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / brogue / PKGBUILD
blobb81773ca0c8e780b38e2ba80e18b55d7a39e49da
1 # Maintainer: Joao Cordeiro <jlcordeiro at gmail dot com>
3 pkgname=brogue
4 pkgver=1.6
5 pkgrel=1
6 pkgdesc="A traditional 26-level crawl to the Amulet of Yendor. Development focus was on a smooth learning curve with strategic depth and intuitive/beautiful appearance."
7 arch=('i686' 'x86_64')
8 url="http://sites.google.com/site/broguegame/"
9 license=('GPL3')
10 depends=('sdl' 'libtcod-beta' 'libpng' 'libpng12')
11 install=brogue.install
12 source=(http://sites.google.com/site/broguegame/$pkgname-linux-$pkgver.tar.gz
13       'brogue.sh')
14 md5sums=('c23513f2e95dfe2289b1309488c52b4b'
15          '3e8e514af3045a61a58565724f702c13')
17 build() {
18   _dest_dir="$pkgdir/usr/share/$pkgname"
19   mkdir -p $_dest_dir
20   chown -R :games $_dest_dir
21   chmod -R g+rw $_dest_dir
23   cd "$srcdir/$pkgname-$pkgver/"
25   sed -i '/^CFLAGS=*/a CFLAGS+=-I/usr/include/libtcod' Makefile
26   sed -i 's/-ltcod/-ltcod -lSDL/g' Makefile
28   make
29   
30   install -D -m 755 bin/brogue "$_dest_dir"
31   install -D -m 644 bin/*.png "$_dest_dir" 
32   install -T -D -m 755 "$srcdir/brogue.sh" "$pkgdir/usr/bin/$pkgname"
35 # vim:set ts=2 sw=2 et: