summaryrefslogtreecommitdiff
path: root/libre/abuse-libre/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-06-04 18:59:26 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-06-04 18:59:26 -0300
commit968b3ae9c27734744031ecba8eed7edd5e45f68c (patch)
tree0fdfd7aeb87178d4530aa6b5af4835e63b0dcdcc /libre/abuse-libre/PKGBUILD
parent711cac5cf4e71740bc80a1a0e14181aa8fcd92f5 (diff)
abuse-libre-0.8-1
Diffstat (limited to 'libre/abuse-libre/PKGBUILD')
-rw-r--r--libre/abuse-libre/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/libre/abuse-libre/PKGBUILD b/libre/abuse-libre/PKGBUILD
new file mode 100644
index 000000000..798ae38f7
--- /dev/null
+++ b/libre/abuse-libre/PKGBUILD
@@ -0,0 +1,49 @@
+# $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"
+}
+