updated on Fri Jan 6 08:01:17 UTC 2012
[aur-mirror.git] / primrose / PKGBUILD
blob37da304e1c9886dd673ad7755a54a046b9b789f6
1 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
3 pkgname=primrose
4 pkgver=6
5 pkgrel=1
6 pkgdesc="A captivating tile-clearing puzzle game"
7 arch=('i686' 'x86_64')
8 url="http://$pkgname.sourceforge.net/"
9 license=('GPL')
10 depends=('sdl' 'libgl' 'mesa')
11 source=(http://downloads.sourceforge.net/$pkgname/Primrose_v${pkgver}_UnixSource.tar.gz \
12         $pkgname.png \
13         $pkgname.desktop)
14 md5sums=('3bef20e73e060482ef6602b890751abb'
15          '70919b0e425609f5987a353420fbbcb6'
16          '5e6620f6ab6a456f5fc648013fe878c2')
18 build() {
19   cd Primrose_v${pkgver}_UnixSource/tilePlacementGames/game1
21   echo 1 | ./configure
23   cd gameSource
25   sed 's|"graphics"|"/usr/share/primrose/graphics"|g' -i common.cpp
27   make  DEBUG_FLAG= \
28         OPTIMIZE_OFF_FLAG="${CXXFLAGS}" \
29         || return 1
31   install -Dm755 Primrose "$pkgdir"/usr/bin/$pkgname
32   mkdir -p "$pkgdir"/usr/share/{doc/,}$pkgname
33   cp -rf graphics/ "$pkgdir"/usr/share/$pkgname/
34   install -m644 ../documentation/*.txt "$pkgdir"/usr/share/doc/$pkgname/
36   install -Dm644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
37   install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
38
40 # vim:set ts=2 sw=2 et: