PKGBUILDs/extra/nppangband/PKGBUILD
2009-10-09 21:23:22 -05:00

32 lines
1.1 KiB
Bash

# $Id: PKGBUILD 45230 2009-07-08 14:13:59Z james $
# Maintainer: James Rayner <iphitus@gmail.com>
pkgname=nppangband
pkgver=0.5b6.22
pkgrel=1
pkgdesc="A variant of Angband that attempts to take popular ideas from other variants"
url="http://members.cox.net/nppangband/"
depends=('ncurses' 'libxaw')
#source=(http://members.cox.net/nppangband/NPPAngband-0.4.1-Source.zip)
source=(http://www.assembla.com/spaces/NPPAngband/documents/dSR9yW1NKr3BWZab7jnrAJ/download/npp5beta6-src-rev22.zip \
Makefile.std)
license=('custom')
arch=('i686' 'x86_64')
build() {
cd $srcdir/npp5beta6-src-rev22/src/
sed 's@# define DEFAULT_PATH "./lib/"@# define DEFAULT_PATH "/usr/share/nppangband/"@' -i config.h
cp $srcdir/Makefile.std ./
make -f Makefile.std
mkdir -p $pkgdir/usr/bin $pkgdir/usr/share
install -m755 nppangband $pkgdir/usr/bin/nppangband
cp -R $srcdir/npp5beta6-src-rev22/lib $pkgdir/usr/share/nppangband/
chmod -R 775 $pkgdir/usr/share/nppangband/
chown -R root:games $pkgdir/usr/share/nppangband/
# install custom license
install -Dm644 $srcdir/npp5beta6-src-rev22/COPYING \
$pkgdir/usr/share/licenses/$pkgname/COPYING
}