summaryrefslogtreecommitdiff
path: root/community/abuse
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-29 02:13:48 -0800
committerroot <root@rshg054.dnsready.net>2012-12-29 02:13:48 -0800
commit5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch)
treef467412e09912ababcd8fe6c05193d829f514dcd /community/abuse
parent3009e8addb4a894329bf8ab3e8fb763361833978 (diff)
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'community/abuse')
-rw-r--r--community/abuse/PKGBUILD32
-rw-r--r--community/abuse/abuse.install13
2 files changed, 45 insertions, 0 deletions
diff --git a/community/abuse/PKGBUILD b/community/abuse/PKGBUILD
new file mode 100644
index 000000000..68924e839
--- /dev/null
+++ b/community/abuse/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 64627 2012-02-17 12:45:02Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: jlvsimoes <jlvsimoes@oninet.pt>
+# Contributor: kevin <kevin@archlinux.org>
+
+pkgname=abuse
+pkgver=0.8
+pkgrel=2
+pkgdesc='A side-scroller action game that pits you against ruthless alien killers.'
+arch=('i686' 'x86_64')
+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}"
+
+ ./configure --prefix=/usr --with-assetdir=/usr/share/abuse/orig --with-x
+ make
+}
+
+package() {
+ cd "${srcdir}/abuse-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ install -d "${pkgdir}/usr/share/licenses/abuse"
+ sed -n '1,/^$/p' src/view.cpp > "${pkgdir}/usr/share/licenses/abuse/orig.code.license"
+}
diff --git a/community/abuse/abuse.install b/community/abuse/abuse.install
new file mode 100644
index 000000000..4d28ebacd
--- /dev/null
+++ b/community/abuse/abuse.install
@@ -0,0 +1,13 @@
+# arg 1: the new package version
+post_install() {
+# echo "If you get a BOSS_ANT error trying to run abuse, copy /usr/share/games/abuse/gamma.lsp to ~/.abuse"
+ echo "Abuse uses the original game levels by default. To use the frabs levels"
+ echo "use '-datadir' or set 'datadir' in the abuserc to /usr/share/abuse/frabs"
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install
+}
+