summaryrefslogtreecommitdiff
path: root/libre/abuse-libre/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-04 22:48:12 +0000
committerroot <root@rshg047.dnsready.net>2011-06-04 22:48:12 +0000
commit80ba845c7cb571644d9dea61b9872c393d128c37 (patch)
tree064ee49a661ab3bdfaef029661561fd60bd1354c /libre/abuse-libre/PKGBUILD
parent805d577f46f94e747f712b7c942f595cd8f7e170 (diff)
Sat Jun 4 22:48:12 UTC 2011
Diffstat (limited to 'libre/abuse-libre/PKGBUILD')
-rw-r--r--libre/abuse-libre/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/libre/abuse-libre/PKGBUILD b/libre/abuse-libre/PKGBUILD
new file mode 100644
index 000000000..d8e5d8e4f
--- /dev/null
+++ b/libre/abuse-libre/PKGBUILD
@@ -0,0 +1,50 @@
+# $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-libre
+pkgver=0.8
+pkgrel=1
+pkgdesc='A side-scroller action game that pits you against ruthless alien killers. Without unfree "Claudio"'
+arch=('i686' 'x86_64')
+url='http://abuse.zoy.org/'
+license=('GPL' 'custom:PublicDomain')
+depends=('gcc-libs' 'libgl' 'sdl' 'sdl_mixer')
+install='abuse.install'
+source=("http://repo.parabolagnulinux.org/other/${pkgname}-${pkgver}.tar.gz")
+
+# Remove the unfree 'claudio' addon
+# $ source PKGBUILD
+# $ mksource
+mksource() {
+ pushd /tmp >/dev/null
+
+ wget http://abuse.zoy.org/raw-attachment/wiki/download/${pkgname%-libre}-${pkgver}.tar.gz \
+ -O - | tar xzf -
+
+ rm -rvf ./abuse-$pkgver/data/addon/claudio
+ tar czvf ${pkgname}-${pkgver}.tar.gz ./abuse-$pkgver
+
+ popd >/dev/null
+
+ mv -v /tmp/${pkgname}-${pkgver}.tar.gz .
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr --with-assetdir=/usr/share/abuse/orig --with-x
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${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"
+}
+
+md5sums=('10cac59308bff0dadb8437eff8b4d87e')