1 # Contributor: Christoph Zeiler <rabyteNOSPAM _at_ gmx.d0t.net>
3 pkgname=gamebook-engine
6 pkgdesc='A free engine for reading gamebooks using the "Hyena" format'
8 url="http://www.freegameengines.org/$pkgname/"
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')
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 \
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
38 # vim:set ts=2 sw=2 et: