blob: 56769ac4ff7f353d1cce32344f1127cb2556d7fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id: PKGBUILD 57886 2011-11-04 08:24:44Z lcarlier $
# Contributor: Allan McRae <mcrae_allan@hotmail.com>
# Maintainer: Daniel J Griffiths <griffithsdj@archlinux.us>
pkgname=critter
_origname=CriticalMass
pkgver=1.0.2
pkgrel=5
pkgdesc="Critical Mass (aka Critter) is an SDL/OpenGL space shoot'em up game"
arch=('i686' 'x86_64')
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
critter-gcc43.patch
critter.desktop)
md5sums=('e2aff114bffa717fb79c82e1dc473ebe'
'e936920acce56bfa3b0123ca8b1193a6'
'98c17809aed964c445adad09827035df')
build() {
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
}
package() {
cd ${srcdir}/$_origname-${pkgver}
make DESTDIR=${pkgdir} install
install -Dm644 critter.png ${pkgdir}/usr/share/pixmaps/critter.png
install -Dm644 ../critter.desktop \
${pkgdir}/usr/share/applications/critter.desktop
}
|