summaryrefslogtreecommitdiff
path: root/community-testing/stone-soup
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
committerroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
commit965fe5dd2bc0fae6b53c10d880c15f494dd589ac (patch)
tree910883dffa913262b28fb7a0e3bc41c3325b1dd2 /community-testing/stone-soup
parent962d1e81a62d7259ccb686da1a44de2bb28e73a5 (diff)
Tue Oct 9 00:33:25 PDT 2012
Diffstat (limited to 'community-testing/stone-soup')
-rw-r--r--community-testing/stone-soup/PKGBUILD68
-rw-r--r--community-testing/stone-soup/stone-soup.install11
2 files changed, 79 insertions, 0 deletions
diff --git a/community-testing/stone-soup/PKGBUILD b/community-testing/stone-soup/PKGBUILD
new file mode 100644
index 000000000..17177714b
--- /dev/null
+++ b/community-testing/stone-soup/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Jakob Gruber <jakob.gruber@gmail.com>
+
+pkgname=stone-soup
+pkgver=0.11.0
+pkgrel=2
+pkgdesc='Open-source, single-player, role-playing roguelike game of exploration and treasure-hunting'
+arch=('i686' 'x86_64')
+url='http://crawl.develz.org/'
+depends=('lua' 'ncurses' 'sdl_image' 'sqlite' 'libgl' 'mesa' 'glu' 'freetype2' 'ttf-dejavu')
+makedepends=('bison' 'flex' 'gendesk')
+conflicts=('crawl' 'stone-soup-tile' 'stone-soup-git')
+license=('custom')
+install=stone-soup.install
+source=("http://downloads.sourceforge.net/sourceforge/crawl-ref/stone_soup-${pkgver}-nodeps.tar.xz")
+
+# used by gendesk to create .desktop file
+_exec=('crawl-tiles')
+_name=('Dungeon Crawl Stone Soup')
+
+build() {
+ cd "$srcdir"
+ gendesk -n
+
+ cd "stone_soup-${pkgver}/source"
+
+ # adjust makefile to use /usr/bin, owner root:root,
+ # disable setgid on executable
+
+ sed -i 's|bin_prefix := bin|bin_prefix := usr/bin|' Makefile
+ sed -i 's/INSTALL_UGRP := games:games/INSTALL_UGRP := root:root/' Makefile
+ sed -i 's|MCHMOD := 2755|MCHMOD := 755|' Makefile
+
+ # first build and install tiles version
+
+ make DESTDIR="${pkgdir}" \
+ SAVEDIR="~/.crawl/" \
+ DATADIR="/usr/share/${pkgname}/data" \
+ USE_UNICODE=y \
+ TILES=y \
+ install
+
+ # rename tiles executable to avoid clashing with console crawl
+
+ mv "${pkgdir}/usr/bin/crawl" "${pkgdir}/usr/bin/crawl-tiles"
+
+ # then build and install console version
+
+ make DESTDIR="${pkgdir}" \
+ SAVEDIR="~/.crawl/" \
+ DATADIR="/usr/share/${pkgname}/data" \
+ USE_UNICODE=y \
+ install
+
+ # install crawl license
+
+ install -D -m644 ../licence.txt \
+ "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
+
+ # install icon and .desktop file
+
+ install -D -m644 dat/tiles/stone_soup_icon-32x32.png \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -D -m644 "${srcdir}/${pkgname}.desktop" \
+ "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+
+}
+
+md5sums=('715d800410a7251499bf8efcc8675ca6')
diff --git a/community-testing/stone-soup/stone-soup.install b/community-testing/stone-soup/stone-soup.install
new file mode 100644
index 000000000..2320123e2
--- /dev/null
+++ b/community-testing/stone-soup/stone-soup.install
@@ -0,0 +1,11 @@
+post_upgrade() {
+
+ # return if old pkgver >= 0.9.0-2
+ [[ $(vercmp $2 0.9.0-2) -ge 0 ]] && return
+
+ echo "---------------------------------------------------------------------
+ stone-soup saves have moved to ~/.crawl.
+ If you want to keep your old saves, move ~/.stone-soup to
+ ~/.crawl.
+---------------------------------------------------------------------"
+}