updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / viruskiller / PKGBUILD
blob689af73f254f13271d6cfeaf916565b1f1ed776e
1 # Contributor: Nick B <Shirakawasuna at gmail _dot_ com>
2 # Maintainer: Dany Martineau <dany.luc.martineau at gmail.com>
4 pkgname=viruskiller
5 pkgver=1.03
6 pkgrel=2
7 pkgdesc="Shoot 'em up. An arcade game that relies on quick reflexes, luck and your file system..."
8 arch=('i686' 'x86_64')
9 url="http://www.parallelrealities.co.uk/projects/virusKiller.php"
10 license=('GPL')
11 depends=('sdl_image' 'sdl_mixer' 'sdl_net' 'sdl_ttf')
12 makedepends=('gcc' 'make' 'hicolor-icon-theme')
13 source=(http://www.parallelrealities.co.uk/download/viruskiller/viruskiller-${pkgver}-1.tar.gz)
14 install=('viruskiller.install')
15 md5sums=('ac74f8a49d249a87e3e77cadd9aa6fa9')
17 build() {
19 cd ${srcdir}/${pkgname}-${pkgver}
21 # fix their method of installing files
22 sed -i s,BINDIR\ =\ \$\(PREFIX\)/games/,BINDIR\ =\ \$\(PREFIX\)/bin/,g makefile
23 sed -i s,DATADIR\ =\ \$\(PREFIX\)/share/games/\$\(PROG\)/,DATADIR\ =\ \$\(PREFIX\)/share/\$\(PROG\)/,g makefile
24 sed -i s,-g\ games,-g\ root,g makefile
25 sed -i s,/usr/games/viruskiller,viruskiller, icons/viruskiller.desktop
27 # compile and install
28 make 
29 make DESTDIR=$pkgdir install
31 #fix their perms
32 chmod 755 ${pkgdir}/usr/bin/viruskiller
33 chmod 644 ${pkgdir}/usr/share/doc/viruskiller/*