summaryrefslogtreecommitdiff
path: root/community/abuse
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-05-11 22:34:26 +0000
committerroot <root@rshg047.dnsready.net>2011-05-11 22:34:26 +0000
commit8867b1d4d0601b21618d44d015460739590ca01d (patch)
treee67076b8591d23942739891c69b2f5459ff9e909 /community/abuse
parent01b47af6474ac094ec199c7d75208874f8842d87 (diff)
Wed May 11 22:34:25 UTC 2011
Diffstat (limited to 'community/abuse')
-rw-r--r--community/abuse/PKGBUILD65
1 files changed, 21 insertions, 44 deletions
diff --git a/community/abuse/PKGBUILD b/community/abuse/PKGBUILD
index 22fb9d7ff..8e003eac4 100644
--- a/community/abuse/PKGBUILD
+++ b/community/abuse/PKGBUILD
@@ -1,55 +1,32 @@
-# $Id: PKGBUILD 8618 2008-08-14 04:01:43Z kevin $
-# Committer: jlvsimoes <jlvsimoes@oninet.pt>
-# Maintainer: kevin <kevin@archlinux.org>
+# $Id: PKGBUILD 46622 2011-05-10 10:00:25Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
+# Contributor: kevin <kevin@archlinux.org>
pkgname=abuse
-pkgver=0.7.1
+pkgver=0.8
pkgrel=1
-pkgdesc="A side-scroller action game that pits you against ruthless alien killers"
-url="http://abuse.zoy.org/"
-depends=('gcc-libs' 'libgl' 'sdl')
-# abuse-data below is the original commercial levels and sound effects.
-# abuse-frabs contains community created levels.
-# abuse-lib is the original demo levels.
-# abuse-sfx is the original sound effects, included in abuse-data.
-source=(http://abuse.zoy.org/raw-attachment/wiki/Downloads/${pkgname}-${pkgver}.tar.gz
-http://abuse.zoy.org/raw-attachment/wiki/Downloads/${pkgname}-data-2.00.tar.gz
-http://abuse.zoy.org/raw-attachment/wiki/Downloads/${pkgname}-frabs-2.11.tar.gz
-abuse.patch)
-noextract=(abuse-data-2.00.tar.gz)
-license=('GPL' 'custom')
+pkgdesc='A side-scroller action game that pits you against ruthless alien killers.'
arch=('i686' 'x86_64')
-install=abuse.install
-md5sums=('439b607f291560a8f9698a2f09cffa63'
- '2b857668849b2dc7cd29cdd84a33c19e'
- '0686f951289fe514846903bab36a2079'
- '86b5256f066e994db9d57dbe1ec2a58e')
+url='http://abuse.zoy.org/'
+license=('GPL' 'custom')
+depends=('gcc-libs' 'libgl' 'sdl' 'sdl_mixer')
+install='abuse.install'
+source=("http://abuse.zoy.org/raw-attachment/wiki/download/${pkgname}-${pkgver}.tar.gz")
+md5sums=('ec678b8dc8d00e0382d8c805c6438489')
build() {
- cd ${srcdir}/abuse-${pkgver}
- patch -p1 -i ${srcdir}/abuse.patch
- ./configure --prefix=/usr --datadir=/usr/share/abuse/orig --with-x
- make || return 1
- make DESTDIR=${pkgdir} install
+ cd "${srcdir}/abuse-${pkgver}"
- mkdir -p ${pkgdir}/usr/share/abuse/{frabs,orig}
- mkdir -p ${pkgdir}/usr/share/licenses/abuse
-
- # original code license. sdlport is gpl.
- sed -n '1,/^$/ p' src/view.cpp > \
- ${pkgdir}/usr/share/licenses/abuse/orig.code.license
+ ./configure --prefix=/usr --with-assetdir=/usr/share/abuse/orig --with-x
+ make
+}
- # original game data.
- cd ${pkgdir}/usr/share/abuse/orig
- tar -xzf ${srcdir}/abuse-data-2.00.tar.gz
- mv README.datafiles ${pkgdir}/usr/share/licenses/abuse/orig.data.license
+package() {
+ cd "${srcdir}/abuse-${pkgver}"
- # frabs data, link to sound in orignal game data.
- cd ${pkgdir}/usr/share/abuse/frabs
- mv ${srcdir}/abuse-frabs-2.11/* .
- rm -f abuse.exe setup.exe art/dos4gw.exe art/spaint.exe
- ln -s ../orig/sfx sfx
- cp docs/index.html ${pkgdir}/usr/share/licenses/abuse/frabs.license
+ make DESTDIR="${pkgdir}" install
- chown -R root:root ${pkgdir}/usr/share
+ install -d "${pkgdir}/usr/share/licenses/abuse"
+ sed -n '1,/^$/p' src/view.cpp > "${pkgdir}/usr/share/licenses/abuse/orig.code.license"
}