1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Christoph Zeiler <rabyte*gmail>
7 pkgdesc='A free game engine for Interplays RPG "The Lord of the Rings"'
9 url="http://www.wonderland.cz/lotr/"
11 depends=('sdl_mixer' 'libxml2')
12 install=$pkgname.install
13 source=(http://download.wonderland.cz/$pkgname-$pkgver.tgz)
14 md5sums=('762f7e6954f99612124ae2fbc74841de')
19 sed 's|games/||g' -i lotr.h
21 export CFLAGS+=" -DFULLSCREEN"
23 # compile floppy version
25 make PREFIX=/usr CFLAGS="${CFLAGS}" || return 1
26 mv -f lotr lotr-floppy
30 make PREFIX=/usr CFLAGS="${CFLAGS} -DCD_VERSION" || return 1
33 # compile demo version
35 make PREFIX=/usr CFLAGS="${CFLAGS} -DDEMO=1" || return 1
39 install -Dm755 lotr-floppy ${pkgdir}/usr/bin/lotr
40 install -m755 lotr-{cd,demo} ${pkgdir}/usr/bin/
41 install -d ${pkgdir}/usr/share/{doc,lotr/cd}
42 cp -rf doc/ ${pkgdir}/usr/share/doc/lotr/