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>
8 pkgdesc='An SDL port of the old DOS arcade game "C-Dogs" (aka "Cyberdogs 2")'
10 url="http://lumaki.com/code/cdogs/"
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 \
19 md5sums=('62f7e055d5febfb8d27ea7ef2c45019f'
20 '8525152c0d97cbbc9ae61026bcc08f86'
21 '933aef96cc07ab6c3b3bd6b1ae1fd05c'
22 '418769d1f9544da2a08b42199f2fac43'
23 '2d1aa8f152f36823595689028961f056')
26 cd $pkgname-sdl-$pkgver/src
28 patch -Np2 -i "$srcdir"/fixes.diff
30 export LDFLAGS="-lSDL_mixer"
33 DATADIR=/usr/share/cdogs \
36 CFLAGS="${CFLAGS} $(sdl-config --cflags)" \
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