updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / formido / PKGBUILD
blob50279eb78015294233a36cc3c24d57c39e8774a3
1 # Contributor: Bug <bug2000@gmail.com>
2 # Contributor: Loui <louipc.ist@gmail.com>
3 pkgname=formido
4 pkgver=1.0.1
5 pkgrel=3
6 pkgdesc="Alien killing game using weapons and power-ups"
7 arch=('i686' 'x64')
8 url="http://www.mhgames.org/oldies/formido/"
9 license=('GPL')
10 depends=("sdl_mixer" "sdl_image")
11 source=("http://noe.falzon.free.fr/prog/$pkgname-$pkgver.tar.gz"
12         'formido-music.tar.bz2::http://www.mhgames.org/download.php?formido-music.tar.bz2')
13 md5sums=('f1556282eddc2edcbfc4fdc62d7b2ba4'
14          '8d344651a3bcfd1d809dab1bcec2b7ee')
15 noextract=(formido-music.tar.bz2)
17 build() {
18   cd $startdir/src/$pkgname-$pkgver
19   make DEFCONFIGDIR=/usr/share/$pkgname DATDIR=/usr/share/$pkgname/data \
20     || return 1
21   mkdir -p $startdir/pkg/usr/bin
22   cp $startdir/src/$pkgname-$pkgver/$pkgname $startdir/pkg/usr/bin/$pkgname
24   mkdir -p $startdir/pkg/usr/share/$pkgname
25   install -m644 $startdir/src/$pkgname-$pkgver/$pkgname.cfg \
26     $startdir/pkg/usr/share/$pkgname/$pkgname.cfg
27   cp -R $startdir/src/$pkgname-$pkgver/data \
28   $startdir/pkg/usr/share/$pkgname/data
29   tar -xjvf ../formido-music.tar.bz2 -C $startdir/pkg/usr/share/$pkgname/data
31   chmod 644 $startdir/pkg/usr/share/formido/data/*
32   chown -R 0:0 $startdir