updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / moon-lander / PKGBUILD
blob5a21c28c5eb4c7d00e31046a5c848e868856ba77
1 # Contributor: dale <dale@archlinux.org>
2 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
4 pkgname=moon-lander
5 pkgver=1.0
6 pkgrel=7
7 pkgdesc="An addictive game of skill where you must land a space-ship on the moon at a perfect speed."
8 arch=('i686' 'x86_64')
9 url="http://none"
10 license=('BSD')
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
14         moon-lander.desktop
15         LICENSE)
16 md5sums=('5726de9d85b9e8b60c27f2ea6428bc96'
17          'd6b948632202ddcda78da4bb1fcd021a'
18          '8bba1446183337ab24b427cb92a118f8'
19          '883198142cca0450dfaab47ec26ac8c2')
21 build() {
22   cd $srcdir/$pkgname
23   sed -i "/DATAPATH/{s#\"\"#\"/usr/share/moon-lander/\"#}" moon_lander.c
24   patch -Np1 -i ${srcdir}/moon-lander-background.patch || return 1
25   make clean
26   make || 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
32   done
33   install -Dm755 moon-lander.bin $pkgdir/usr/bin/moon-lander
34   
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