updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / dstroy / PKGBUILD
blob24eb66955b2233eec485249e67c79d81973b6dbd
1 # Contributor: Simon Lipp <sloonz+aur@gmail.com>
3 pkgname=dstroy
4 pkgver=1.7
5 pkgrel=1
6 pkgdesc="Rewrite of an old bomberman-like"
7 arch=(i686 x86_64)
8 url="http://narroin.free.fr/dstroy/"
9 license=(custom)
10 depends=('sdl')
11 makedepends=('make' 'gcc')
12 source=('http://narroin.free.fr/dstroy/res/dstroySrc_20090214.zip'
13         'http://narroin.free.fr/dstroy/res/dstroyWin32_20090206.zip')
14 md5sums=('31004c2af56f1aae807968dd3df87d07'
15          '291d86e0e32b64d220352526dca0167f')
17 build() {
18         cd "$srcdir/dstroy_src"
19         make -f Makefile.linux DATADIR=/usr/share/dstroy || return 1
20         
21         # Don't use makefile for installation: do too many crap (a "game" group, a RPM spec,...)
22         install -d "$pkgdir/usr/bin" &&
23         install -d "$pkgdir/usr/share/dstroy" &&
24         install -d "$pkgdir/usr/share/licenses/dstroy" || return 1
25         
26         install --mode=755 "$srcdir/dstroy_src/dstroy" "$pkgdir/usr/bin" &&
27         install --mode=644 "$srcdir/dstroy_src/LICENSE.txt" "$pkgdir/usr/share/licenses/dstroy/LICENSE" &&
28         install --mode=644 "$srcdir/dstroy_src/LICENSE-data.txt" "$pkgdir/usr/share/licenses/dstroy/LICENSE-data" || return 1
29         
30         for f in "$srcdir"/dstroy/dstroydata/* ; do
31                 install --mode=644 "$f" "$pkgdir/usr/share/dstroy" || return 1
32         done