1 # Contributor: Christoph Zeiler <moonblade.dot.org: arch>
2 # Maintainer: Jesse Jaara <gmail.com: jesse.jaara>
7 pkgdesc='A free port of QXLands logic game "Robbo" for the Atari XE/XL'
9 url="http://$pkgname.sourceforge.net/"
11 depends=('sdl_ttf' 'sdl_mixer' 'sdl_image')
12 optdepends=('gnurobbo-data-nonfree')
13 source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-source.tar.gz"
18 cd "${srcdir}/${pkgname}-${pkgver}"
20 sed -e 's|#MUSIC=-DHAVE_MUSIC|MUSIC=-DHAVE_MUSIC|g' \
21 -e 's|=-O3 -pipe -Wall -fomit-frame-pointer|+=|g' \
22 -e 's|-lSDL_image|-lm -lSDL_image|g' \
25 sed '/#define DEBUG_DUMP_VM_USAGE/d' -i game.c
27 # remove non-free data
28 sed 's|original.dat|dummy.dat|g' -i levels.h
30 make PACKAGE_DATA_DIR=/usr/share/{${pkgname}}
35 cd "${srcdir}/${pkgname}-${pkgver}"
37 make PACKAGE_DATA_DIR="${pkgdir}/usr/share/${pkgname}" BINDIR="${pkgdir}/usr/bin" DOCDIR="${pkgdir}/usr/share/doc/${pkgname}" install
39 mkdir "${pkgdir}/usr/share/gnurobbo/music"
40 rm -r "${pkgdir}"/usr/share/gnurobbo/{levels/original.dat,skins/original}
42 install -m644 ChangeLog COPYING README "${pkgdir}/usr/share/doc/${pkgname}/"
43 install -Dm644 icon32.png "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
45 install -Dm644 ../dummy.dat "${pkgdir}/usr/share/${pkgname}/levels/dummy.dat"
46 install -Dm644 ../${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
49 # vim:set ts=2 sw=2 et:
50 md5sums=('77fdf9a186a08c1f95b94bd35ebbc21c'
51 '904dd16b523e97c867d9a31aeacef1b6'
52 'e520a3c136854383627d1d960a41f8b2')