mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 11:13:33 +01:00
Initial PKGBUILD status as of 28.11.2014
This commit is contained in:
commit
1fa63b5796
3 changed files with 78 additions and 0 deletions
17
.SRCINFO
Normal file
17
.SRCINFO
Normal file
|
|
@ -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
|
||||
|
||||
44
PKGBUILD
Normal file
44
PKGBUILD
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
|
||||
# Contributor: Christoph Zeiler <rabyte*gmail>
|
||||
|
||||
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/
|
||||
}
|
||||
17
lotr.install
Normal file
17
lotr.install
Normal file
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue