1 # Contributor: dale <dale@archlinux.org>
2 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
7 pkgdesc="An addictive game of skill where you must land a space-ship on the moon at a perfect speed."
11 depends=('sdl' 'sdl_mixer>=1.2.10' 'sdl_image' 'libvorbis')
12 source=(http://ftp.debian.org/debian/pool/main/m/moon-lander/${pkgname}_$pkgver.orig.tar.gz
13 moon-lander-background.patch
16 md5sums=('5726de9d85b9e8b60c27f2ea6428bc96'
17 'd6b948632202ddcda78da4bb1fcd021a'
18 '8bba1446183337ab24b427cb92a118f8'
19 '883198142cca0450dfaab47ec26ac8c2')
23 sed -i "/DATAPATH/{s#\"\"#\"/usr/share/moon-lander/\"#}" moon_lander.c
24 patch -Np1 -i ${srcdir}/moon-lander-background.patch || return 1
28 install -dm755 $pkgdir/usr/share/$pkgname/{fonts,images/{backgrounds,kablam},sounds}
29 for dir in fonts images{,/backgrounds,/kablam} sounds; do
30 #install -m644 $dir/* $pkgdir/usr/share/$pkgname/$dir
31 cp -R $dir/* $pkgdir/usr/share/$pkgname/$dir && chmod -R 755 $pkgdir/usr/share/$pkgname/$dir
33 install -Dm755 moon-lander.bin $pkgdir/usr/bin/moon-lander
35 install -Dm644 $srcdir/moon-lander.desktop \
36 $pkgdir/usr/share/applications/moon-lander.desktop
38 install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE