From 82fd7f658509afe9737e14e8d1ee9fefe13c9d1f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 5 Nov 2011 23:14:55 +0000 Subject: Sat Nov 5 23:14:55 UTC 2011 --- community/critter/PKGBUILD | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'community/critter') diff --git a/community/critter/PKGBUILD b/community/critter/PKGBUILD index 3697a70b7..56769ac4f 100644 --- a/community/critter/PKGBUILD +++ b/community/critter/PKGBUILD @@ -1,15 +1,17 @@ -# Maintainer: Allan McRae +# $Id: PKGBUILD 57886 2011-11-04 08:24:44Z lcarlier $ +# Contributor: Allan McRae +# Maintainer: Daniel J Griffiths pkgname=critter _origname=CriticalMass pkgver=1.0.2 -pkgrel=4 +pkgrel=5 pkgdesc="Critical Mass (aka Critter) is an SDL/OpenGL space shoot'em up game" arch=('i686' 'x86_64') -url="http://criticalmass.sourceforge.net/critter.php" +url="http://sourceforge.net/projects/criticalmass" license=('GPL') depends=('sdl_image' 'sdl_mixer' 'mesa') -source=(http://downloads.sourceforge.net/sourceforge/criticalmass/$_origname-$pkgver.tar.bz2 +source=(http://downloads.sourceforge.net/sourceforge/criticalmass/$_origname-${pkgver}.tar.bz2 critter-gcc43.patch critter.desktop) md5sums=('e2aff114bffa717fb79c82e1dc473ebe' @@ -17,13 +19,21 @@ md5sums=('e2aff114bffa717fb79c82e1dc473ebe' '98c17809aed964c445adad09827035df') build() { - cd $startdir/src/$_origname-$pkgver + cd ${srcdir}/$_origname-${pkgver} + patch -Np1 -i ../critter-gcc43.patch sed -i 's|-lpng12|-lpng|g' configure + ./configure --prefix=/usr --mandir=/usr/share/man - make || return 1 - make DESTDIR=$startdir/pkg install - install -Dm644 critter.png ${startdir}/pkg/usr/share/pixmaps/critter.png + make +} + +package() { + cd ${srcdir}/$_origname-${pkgver} + + make DESTDIR=${pkgdir} install + + install -Dm644 critter.png ${pkgdir}/usr/share/pixmaps/critter.png install -Dm644 ../critter.desktop \ - ${startdir}/pkg/usr/share/applications/critter.desktop + ${pkgdir}/usr/share/applications/critter.desktop } -- cgit v1.2.3-54-g00ecf