From 968b3ae9c27734744031ecba8eed7edd5e45f68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Sat, 4 Jun 2011 18:59:26 -0300 Subject: abuse-libre-0.8-1 --- libre/abuse-libre/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 libre/abuse-libre/PKGBUILD (limited to 'libre/abuse-libre/PKGBUILD') 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 +# Contributor: jlvsimoes +# Contributor: kevin + +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" +} + -- cgit v1.2.3-2-g168b