updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / enemylines7 / PKGBUILD
blob553edcab5208f2a279c0363367ba558ef005fefb
1 # Maintainer: Jozef Riha <jose1711 at gmail dot com>
3 pkgname=enemylines7
4 pkgver=0.8
5 pkgrel=3
6 pkgdesc="Enemy lines - computer game series"
7 arch=('i686')
8 url="http://proj.phk.at/el/7/"
9 license=('GPL-3')
10 depends=('sdl' 'sdl_mixer' 'sdl_image' 'mesa')
11 source=("http://proj.phk.at/el/7/enelin7-${pkgver}.zip" "enelin7.desktop")
12 md5sums=('ec94352523c9679d6b0cc3678a510283' '3ddc3e95f3c475719380fe14147b44ef')
14 build() {
15   mkdir -p $pkgdir/usr/bin
16   cd $srcdir/enelin7-$pkgver/src
17   make
20 package() {
21   cd $srcdir/enelin7-$pkgver/src
22   install -D -m755 ./enelin7 $pkgdir/usr/share/enelin7/enelin7
23   cp -R ../data $pkgdir/usr/share/enelin7/data 
24   find $pkgdir/usr/share/enelin7/data -type f -print0 | xargs -0 chmod 644
25   echo "#!/bin/sh
26 cd /usr/share/enelin7
27 ./enelin7" > $pkgdir/usr/bin/enelin7
28   chmod 755 $pkgdir/usr/bin/enelin7
29   install -D -m644 $srcdir/enelin7.desktop $pkgdir/usr/share/applications/enelin7.desktop