diff options
-rw-r--r-- | libre/abuse-libre/PKGBUILD | 49 | ||||
-rw-r--r-- | libre/abuse-libre/abuse.install | 14 | ||||
-rw-r--r-- | libre/abuse-libre/rePKGBUILD | 33 |
3 files changed, 96 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" +} + 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 <fauno@kiwwwi.com.ar> +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: |