diff options
author | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-07-19 01:10:32 -0700 |
commit | 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch) | |
tree | 03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/blobwars | |
parent | e445a313723389ba9ee1fded025c567dae5b21ea (diff) |
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/blobwars')
-rw-r--r-- | community/blobwars/PKGBUILD | 41 | ||||
-rw-r--r-- | community/blobwars/blobwars.install | 11 |
2 files changed, 52 insertions, 0 deletions
diff --git a/community/blobwars/PKGBUILD b/community/blobwars/PKGBUILD new file mode 100644 index 000000000..dd180f51c --- /dev/null +++ b/community/blobwars/PKGBUILD @@ -0,0 +1,41 @@ +# $Id: PKGBUILD 57879 2011-11-04 08:01:07Z lcarlier $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: geekitus + +pkgname=blobwars +pkgver=1.19 +pkgrel=4 +pkgdesc="Platform action game featuring a blob wih lot of weapons" +arch=('i686' 'x86_64') +url="http://sourceforge.net/projects/blobwars" +license=('GPL') +makedepends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'sdl_net') +install=$pkgname.install +source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz) +md5sums=('87e8aaa114b6e4742ea6ee28e7a7f984') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # fix building with gcc 4.6 + sed -i -e 's/-Werror/-Werror -Wno-error=unused-result/g' makefile + + RELEASE=1 make +} + +package() { + depends=('hicolor-icon-theme' 'sdl_image' 'sdl_mixer' 'sdl_ttf' 'sdl_net' 'blobwars-data>=1.19') + + cd "${srcdir}/${pkgname}-${pkgver}" + + make PREFIX="${pkgdir}/usr" BINDIR="${pkgdir}/usr/bin/" install + + # We remove data files (See blobwars-data) + rm -r "${pkgdir}/usr/share/games" + + chmod a+r "${pkgdir}/usr/share/applications/${pkgname}.desktop" + chmod a+r -R "${pkgdir}/usr/share/icons/hicolor/" + install -dm755 "${pkgdir}/usr/share/pixmaps" + install -m644 icons/blobwars.png "${pkgdir}/usr/share/pixmaps/" +} diff --git a/community/blobwars/blobwars.install b/community/blobwars/blobwars.install new file mode 100644 index 000000000..b711352cb --- /dev/null +++ b/community/blobwars/blobwars.install @@ -0,0 +1,11 @@ +post_install() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |