updated on Sat Jan 21 12:00:39 UTC 2012
[aur-mirror.git] / zapm / PKGBUILD
blob2cbcc8aeceb708c50aae3c938de07d4765929702
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 pkgname=zapm
4 pkgver=0.8.1
5 pkgrel=1
6 pkgdesc="A science fiction roguelike, Nethack in space."
7 arch=("i686" "x86_64")
8 url="http://zapm.org/"
9 license=("unknown")
10 [ "$CARCH" == "i686" ] && depends=("ncurses")
11 [ "$CARCH" == "x86_64" ] && depends=("lib32-ncurses")
12 source=("http://zapm.org/zapm-$pkgver.linux.tar.gz"
13         "launcher")
14 md5sums=('c0f10ad593be7c22d6da336cf8de9cbc'
15          'bf4b75ae17d4c95fabcda50bae47fa80')
17 package() {
18   cd "$srcdir/$pkgname"
19   mkdir -p "$pkgdir/usr/share/zapm"
20   sed -i 's|libpanel.so.5|libpanelw.so\x00|g' zapm
21   cp -r * "$pkgdir/usr/share/zapm"
22   chown -R root:games "$pkgdir/usr/share/zapm/user"
23   chmod -R 775 "$pkgdir/usr/share/zapm/user"
24   install -D "$srcdir/launcher" "$pkgdir/usr/bin/$pkgname"