mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 07:42:27 +01:00
lotr-0.6.5-2
This commit is contained in:
parent
1fa63b5796
commit
1390240b2b
1 changed files with 14 additions and 9 deletions
23
PKGBUILD
23
PKGBUILD
|
|
@ -14,31 +14,36 @@ install=$pkgname.install
|
|||
source=(http://download.wonderland.cz/$pkgname-$pkgver.tgz)
|
||||
md5sums=('762f7e6954f99612124ae2fbc74841de')
|
||||
|
||||
build() {
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
sed 's|games/||g' -i lotr.h
|
||||
|
||||
export CFLAGS+=" -DFULLSCREEN"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
# 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
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
# 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/
|
||||
}
|
||||
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/
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue