updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / cultivation / PKGBUILD
blobe2bba9659059059596f36095f57ebfe8ffa567fa
1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
4 pkgname=cultivation
5 pkgver=8
6 pkgrel=3
7 pkgdesc="A social simulation game"
8 arch=('i686' 'x86_64')
9 url="http://cultivation.sourceforge.net/"
10 license=('custom')
11 depends=('freeglut' 'libgl')
12 source=(http://downloads.sourceforge.net/$pkgname/Cultivation_${pkgver}_UnixSource.tar.gz
13         $pkgname.sh
14         $pkgname.png
15         $pkgname.desktop
16         LICENSE)
17 md5sums=('775de01907613f80f468b73c8d66920b'
18          '4b38ef7225e6dee976f9e16867c22b89'
19          '63ecab4fcbcf51a3c7bf44068b46d2ff'
20          'cd6bf07d122677bc7ce7534f3aec35cb'
21          'd7100862d8ca045e3d3a79560f9d34af')
23 build() {
24     cd $srcdir/Cultivation_${pkgver}_UnixSource
26     # Patch and set compilation flag
27     sed 's|-O9|$(CXXFLAGS)|g' -i game2/Makefile.common
28     export CFLAGS="${CXXFLAGS} -fPIC"
30     # Compile
31     echo 1 | ./runToBuild || return 1
33     # Copy data
34     install -d $pkgdir/usr/share/{doc/,}$pkgname
35     install -m 755 Cultivation $pkgdir/usr/share/$pkgname/$pkgname
36     cp -rf font.tga languages/ $pkgdir/usr/share/$pkgname/
37     install -m 644 *.txt $pkgdir/usr/share/doc/$pkgname/
39     # Install bin, license, icon and desktop
40     install -Dm 755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
41     install -Dm 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
42     install -Dm 644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
43     install -Dm 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop