1 # Maintainer: Arkham <arkham at archlinux dot us>
2 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
7 pkgdesc="A social simulation game"
9 url="http://cultivation.sourceforge.net/"
11 depends=('freeglut' 'libgl')
12 source=(http://downloads.sourceforge.net/$pkgname/Cultivation_${pkgver}_UnixSource.tar.gz
17 md5sums=('775de01907613f80f468b73c8d66920b'
18 '4b38ef7225e6dee976f9e16867c22b89'
19 '63ecab4fcbcf51a3c7bf44068b46d2ff'
20 'cd6bf07d122677bc7ce7534f3aec35cb'
21 'd7100862d8ca045e3d3a79560f9d34af')
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"
31 echo 1 | ./runToBuild || return 1
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