From 1fa63b57960fdb36d8f418fbb4580c4e6c2a8060 Mon Sep 17 00:00:00 2001 From: Jaroslav Lichtblau Date: Fri, 28 Nov 2014 20:17:14 +0100 Subject: [PATCH] Initial PKGBUILD status as of 28.11.2014 --- .SRCINFO | 17 +++++++++++++++++ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ lotr.install | 17 +++++++++++++++++ 3 files changed, 78 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 lotr.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..01a3f5f5d48e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = lotr + pkgdesc = A free game engine for Interplays RPG "The Lord of the Rings" + pkgver = 0.6.5 + pkgrel = 2 + url = http://www.wonderland.cz/lotr/ + install = lotr.install + arch = i686 + arch = x86_64 + license = LGPL + depends = sdl_mixer + depends = libxml2 + optdepends = timidity++: for playing sound + source = http://download.wonderland.cz/lotr-0.6.5.tgz + md5sums = 762f7e6954f99612124ae2fbc74841de + +pkgname = lotr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..71216bbf9a63 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Jaroslav Lichtblau +# Contributor: Christoph Zeiler + +pkgname=lotr +pkgver=0.6.5 +pkgrel=2 +pkgdesc='A free game engine for Interplays RPG "The Lord of the Rings"' +arch=('i686' 'x86_64') +url="http://www.wonderland.cz/lotr/" +license=('LGPL') +depends=('sdl_mixer' 'libxml2') +optdepends=('timidity++: for playing sound') +install=$pkgname.install +source=(http://download.wonderland.cz/$pkgname-$pkgver.tgz) +md5sums=('762f7e6954f99612124ae2fbc74841de') + +build() { + cd $pkgname-$pkgver + + sed 's|games/||g' -i lotr.h + + export CFLAGS+=" -DFULLSCREEN" + +# compile floppy version + make clean + make PREFIX=/usr CFLAGS="${CFLAGS}" + mv -f lotr lotr-floppy + +# compile cd version + make clean + make PREFIX=/usr CFLAGS="${CFLAGS} -DCD_VERSION" + mv -f lotr lotr-cd + +# compile demo version + make clean + make PREFIX=/usr CFLAGS="${CFLAGS} -DDEMO=1" + mv -f lotr lotr-demo + +# install files + install -Dm755 lotr-floppy ${pkgdir}/usr/bin/lotr + install -m755 lotr-{cd,demo} ${pkgdir}/usr/bin/ + install -d ${pkgdir}/usr/share/{doc,lotr/cd} + cp -rf doc/ ${pkgdir}/usr/share/doc/lotr/ +} diff --git a/lotr.install b/lotr.install new file mode 100644 index 000000000000..4552cde716dd --- /dev/null +++ b/lotr.install @@ -0,0 +1,17 @@ +post_install() { + cat <<- EOF + :: You need the data files from either + :: the CD-, floppy or demo-version to play. + :: Copy the files to the respective directory: + :: + :: CD --> /usr/share/lotr/cd + :: floppy --> /usr/share/lotr + :: demo --> /usr/share/lotr + :: + :: Then type 'lotr', 'lotr-cd', or 'lotr-demo'. + EOF +} + +post_upgrade() { + post_install $1 +}