1 # Contributor: zoulnix <http://goo.gl/HQaP>
5 pkgdesc="8-bit style game where two player face off against each other."
7 url="http://smashbattle.sourceforge.net/"
9 depends=('libstdc++5' 'sdl_mixer' 'sdl_ttf')
10 makedepends=('gcc' 'make' 'pkgconfig')
11 source=(http://downloads.sourceforge.net/${pkgname}/battle-090923-1-src.zip \
13 md5sums=('42026971e9e171b77748243129783f8a' '72984d5a437cefa41537860f43c9f302')
16 cd ${srcdir}/battle-090923-1/Battle
19 sed -i -e 's:\/usr\/share\/games\/smashbattle\/gfx\/SB.png:smashbattle:' linux/smash*.desktop || return 1
20 sed -i -e 's:\/usr\/local\/bin\/::' linux/smash*.desktop || return 1
26 cd ${srcdir}/battle-090923-1/Battle
27 install -d ${pkgdir}/usr/{bin,share/${pkgname}} \
28 ${pkgdir}/usr/share/{applications,pixmaps,${pkgname}/{gfx,music,sfx,stage}} || return 1
30 install -m755 ${startdir}/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname} || return 1
31 install -m755 battle ${pkgdir}/usr/share/${pkgname}/ || return 1
32 install -m644 linux/${pkgname}*.desktop ${pkgdir}/usr/share/applications/ || return 1
33 install -m644 gfx/SB.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png || return 1
34 install -m644 gfx/*.bmp ${pkgdir}/usr/share/${pkgname}/gfx/ || return 1
35 install -m644 music/*.ogg ${pkgdir}/usr/share/${pkgname}/music/ || return 1
36 install -m644 sfx/*.wav ${pkgdir}/usr/share/${pkgname}/sfx/ || return 1
37 install -m644 stage/*.lvl ${pkgdir}/usr/share/${pkgname}/stage/ || return 1