From 968b3ae9c27734744031ecba8eed7edd5e45f68c Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 4 Jun 2011 18:59:26 -0300 Subject: abuse-libre-0.8-1 --- libre/abuse-libre/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++ libre/abuse-libre/abuse.install | 14 ++++++++++++ libre/abuse-libre/rePKGBUILD | 33 +++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 libre/abuse-libre/PKGBUILD create mode 100644 libre/abuse-libre/abuse.install create mode 100644 libre/abuse-libre/rePKGBUILD (limited to 'libre') 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" +} + diff --git a/libre/abuse-libre/abuse.install b/libre/abuse-libre/abuse.install new file mode 100644 index 000000000..ca888f196 --- /dev/null +++ b/libre/abuse-libre/abuse.install @@ -0,0 +1,14 @@ +# 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 +} + + diff --git a/libre/abuse-libre/rePKGBUILD b/libre/abuse-libre/rePKGBUILD new file mode 100644 index 000000000..3c9a0082d --- /dev/null +++ b/libre/abuse-libre/rePKGBUILD @@ -0,0 +1,33 @@ +# This is an example rePKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Nicolas Reynolds +source PKGBUILD +CARCH=x86_64 +unset build package md5sums source +_repo=community +options=(!strip) +source=(PKGBUILD + http://mirrors.kernel.org/archlinux/${_repo}/os/$CARCH/${pkgname%-libre}-$pkgver-$pkgrel-$CARCH$PKGEXT + # files for pkg modifications + ) + +build() { + cd "${srcdir}/" + rm -v .{INSTALL,PKGINFO} ${pkgname%-libre}-$pkgver-$pkgrel-$CARCH.pkg.tar.xz + # actions for package modifications + # be sure to remove source files + + msg "Removing unfree 'Claudio' addon" + rm -rvf usr/share/abuse/orig/addon/claudio/ +} + +package() { + cd ${srcdir} + cp -a ./* ${pkgdir} +} + + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3