updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gamebook-engine / PKGBUILD
blobd02fdbb01be420e9dcca907e6b6bfc232893db8f
1 # Contributor: Christoph Zeiler <rabyteNOSPAM _at_ gmx.d0t.net>
3 pkgname=gamebook-engine
4 pkgver=0.1.4
5 pkgrel=2
6 pkgdesc='A free engine for reading gamebooks using the "Hyena" format'
7 arch=('i686' 'x86_64')
8 url="http://www.freegameengines.org/$pkgname/"
9 license=('GPL')
10 depends=('lua>=5.1' 'qt>=4.4')
11 source=(http://www.projectaon.org/staff/brandon/$pkgname-src-$pkgver.tar.gz)
12 md5sums=('fc6ec9fc0a6efb20732cc1fa37dcb6cc')
13 sha1sums=('abe2278e78a51fe3fa4c4bab66250dc86eb385c4')
15 build() {
16   cd $pkgname-src-$pkgver
18   sed 's|moc-qt4|moc|g ; s|lua5.1|lua|g' -i Makefile
20   make  CXXFLAGS="${CXXFLAGS}" \
21         QT_INC_PREFIX=/usr/include \
22         DEBUG_OPT= \
23         || return 1
25   install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
27   mkdir -p "$pkgdir"/usr/share/$pkgname
28   install -Dm644 gamebooks/01fftd/01fftd.gamebook "$pkgdir"/usr/share/$pkgname/fftd.gamebook
29   install -m644 gamebooks/ring-of-thieves.gamebook "$pkgdir"/usr/share/$pkgname/rot.gamebook
31   for book in fftd rot; do
32         echo "/usr/bin/$pkgname /usr/share/$pkgname/$book.gamebook \"\$@\"" \
33                 > "$pkgdir"/usr/bin/$pkgname-$book
34         chmod 755 "$pkgdir"/usr/bin/$pkgname-$book
35   done
38 # vim:set ts=2 sw=2 et: