updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / gnurobbo / PKGBUILD
blob03a0e1d5f1426462bf08f5a92d73f49c5f3831bd
1 # Contributor: Christoph Zeiler <moonblade.dot.org: arch>
2 # Maintainer:  Jesse Jaara      <gmail.com: jesse.jaara>
4 pkgname=gnurobbo
5 pkgver=0.66
6 pkgrel=2
7 pkgdesc='A free port of QXLands logic game "Robbo" for the Atari XE/XL'
8 arch=('i686' 'x86_64')
9 url="http://$pkgname.sourceforge.net/"
10 license=('GPL')
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"
14         'dummy.dat'
15         "${pkgname}.desktop")
17 build() {
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' \
23         -i Makefile
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}}
34 package() {
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')