summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2015-12-11 09:23:31 -0500
committerKyle Keen2015-12-11 09:23:31 -0500
commit015c76d44c40347c495aee2bb078153d14832343 (patch)
treeb14817013120cb92a1cac5f4ad7fb022dd66372a
parent73fcf50814af635a210628c9daf196ea89fcb8fb (diff)
downloadaur-015c76d44c40347c495aee2bb078153d14832343.tar.gz
update to 0.8.3, switch to source build
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD37
-rwxr-xr-xlauncher6
3 files changed, 29 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 17090b8a2fc..2b96451443b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
+# Generated by mksrcinfo v8
+# Fri Dec 11 14:23:28 UTC 2015
pkgbase = zapm
pkgdesc = A science fiction roguelike, Nethack in space.
- pkgver = 0.8.1
+ pkgver = 0.8.3
pkgrel = 1
url = http://zapm.org/
arch = i686
arch = x86_64
license = unknown
depends = ncurses
- source = http://zapm.org/zapm-0.8.1.linux.tar.gz
- source = launcher
- md5sums = c0f10ad593be7c22d6da336cf8de9cbc
- md5sums = bf4b75ae17d4c95fabcda50bae47fa80
+ source = http://nethack.devnull.net/software/zapm-083-src.tgz
+ md5sums = 4759b924a506cc0674cfb9aa2ca69866
pkgname = zapm
diff --git a/PKGBUILD b/PKGBUILD
index 45cedf671ae..0dbbb514c4d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,36 @@
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=zapm
-pkgver=0.8.1
+pkgver=0.8.3
+_pkgver=083
pkgrel=1
pkgdesc="A science fiction roguelike, Nethack in space."
arch=("i686" "x86_64")
url="http://zapm.org/"
license=("unknown")
depends=("ncurses")
-[ "$CARCH" == "x86_64" ] && depends=("lib32-ncurses")
-source=("http://zapm.org/zapm-$pkgver.linux.tar.gz"
- "launcher")
-md5sums=('c0f10ad593be7c22d6da336cf8de9cbc'
- 'bf4b75ae17d4c95fabcda50bae47fa80')
+source=("http://nethack.devnull.net/software/zapm-$_pkgver-src.tgz")
+md5sums=("4759b924a506cc0674cfb9aa2ca69866")
+
+prepare() {
+ cd $pkgname-$pkgver
+ sed -i 's| grow| this->grow|' Util.h
+ sed -i 's|-flat_namespace||' Makefile
+}
+
+build() {
+ cd $pkgname-$pkgver
+ # double quoting needed to make #defines happy
+ make ZAPMOWNER='root:games' GAMEDIR='"/usr/share/games/zapm"' \
+ DATADIR='"/usr/share/games/zapm/data"' zapm-multiuser
+}
package() {
- cd "$srcdir/$pkgname"
- mkdir -p "$pkgdir/usr/share/zapm"
- sed -i 's|libpanel.so.5|libpanelw.so\x00|g' zapm
- cp -r * "$pkgdir/usr/share/zapm"
- chown -R root:games "$pkgdir/usr/share/zapm/user"
- chmod -R 775 "$pkgdir/usr/share/zapm/user"
- install -D "$srcdir/launcher" "$pkgdir/usr/bin/$pkgname"
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" ZAPMOWNER='root:games' \
+ GAMEDIR="$pkgdir/usr/share/games/zapm" \
+ DATADIR="$pkgdir/usr/share/games/zapm/data" install
+ install -d "$pkgdir/usr/bin/"
+ ln -s /usr/share/games/zapm/zapm "$pkgdir/usr/bin/zapm"
}
+
diff --git a/launcher b/launcher
deleted file mode 100755
index cc05cc263f3..00000000000
--- a/launcher
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-## This is required for savegames to work.
-cd /usr/share/zapm
-/usr/share/zapm/zapm
-