updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / cdogs / PKGBUILD
blobb83a5599bc51293dd69d055d9ccb4f6447f51f85
1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
2 # Contributor: nut543 <kfs1@online.no>
3 # Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
5 pkgname=cdogs
6 pkgver=0.4
7 pkgrel=3
8 pkgdesc='An SDL port of the old DOS arcade game "C-Dogs" (aka "Cyberdogs 2")'
9 arch=('i686' 'x86_64')
10 url="http://lumaki.com/code/cdogs/"
11 license=('GPL')
12 depends=('sdl_mixer')
13 install=$pkgname.install
14 source=(http://icculus.org/cdogs-sdl/files/src/cdogs-sdl-$pkgver.tar.bz2 \
15         http://icculus.org/cdogs-sdl/files/data/cdogs-data-2007-07-06.tar.bz2 \
16         $pkgname.png \
17         $pkgname.desktop \
18         fixes.diff)
19 md5sums=('62f7e055d5febfb8d27ea7ef2c45019f'
20          '8525152c0d97cbbc9ae61026bcc08f86'
21          '933aef96cc07ab6c3b3bd6b1ae1fd05c'
22          '418769d1f9544da2a08b42199f2fac43'
23          '2d1aa8f152f36823595689028961f056')
25 build() {
26   cd $pkgname-sdl-$pkgver/src
28   patch -Np2 -i "$srcdir"/fixes.diff
30   export LDFLAGS="-lSDL_mixer"
32   make  cdogs \
33         DATADIR=/usr/share/cdogs \
34         SYSTEM=linux \
35         I_AM_CONFIGURED=yes \
36         CFLAGS="${CFLAGS} $(sdl-config --cflags)" \
37         STRIP=: \
38         || return 1
40   mkdir -p "$pkgdir"/usr/{bin,share/doc}
41   install -m755 cdogs "$pkgdir"/usr/bin/
42   cp -rf ../doc/ "$pkgdir"/usr/share/doc/cdogs/
43   cp -rf "$srcdir"/cdogs-data-2007-07-06/ "$pkgdir"/usr/share/cdogs/
45   install -Dm644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
46   install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop