diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/stone-soup |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/stone-soup')
-rw-r--r-- | community/stone-soup/PKGBUILD | 61 | ||||
-rw-r--r-- | community/stone-soup/stone-soup.desktop | 11 | ||||
-rw-r--r-- | community/stone-soup/stone-soup.install | 12 |
3 files changed, 84 insertions, 0 deletions
diff --git a/community/stone-soup/PKGBUILD b/community/stone-soup/PKGBUILD new file mode 100644 index 000000000..889ca785a --- /dev/null +++ b/community/stone-soup/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: Jakob Gruber <jakob.gruber@gmail.com> + +pkgname=stone-soup +pkgver=0.7.2 +pkgrel=1 +pkgdesc="An 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' 'sqlite3' 'libgl' 'mesa' 'freetype2') +makedepends=('bison' 'flex') +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.bz2" + "${pkgname}.desktop") +md5sums=('dbd2680a2649acc681fce3453c65975b' + '98be780cddb2a0915bbab15ad93644f1') + +build() { + + cd "${srcdir}/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="~/.stone-soup/" \ + 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="~/.stone-soup/" \ + 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" + +} + +# vim: ts=4:sw=4:expandtab diff --git a/community/stone-soup/stone-soup.desktop b/community/stone-soup/stone-soup.desktop new file mode 100644 index 000000000..f87d084c8 --- /dev/null +++ b/community/stone-soup/stone-soup.desktop @@ -0,0 +1,11 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Version=1.0 +Type=Application +Name=Stone Soup +GenericName=Crawl Stone Soup +Comment=An open-source, single-player, role-playing roguelike game of exploration and treasure-hunting +Icon=stone-soup.png +Exec=/usr/bin/crawl-tiles +Categories=Game;ArcadeGame + diff --git a/community/stone-soup/stone-soup.install b/community/stone-soup/stone-soup.install new file mode 100644 index 000000000..08cb7e01d --- /dev/null +++ b/community/stone-soup/stone-soup.install @@ -0,0 +1,12 @@ +post_upgrade() { + + [[ $(vercmp $2 0.7.1) -ge 0 ]] && return + + echo "--------------------------------------------------------------------- + stone-soup saves have moved to ~/.stone-soup. + if you want to keep your old saves, move /var/games/stone-soup to + ~/.stone-soup with your user as owner. + + stone-soup now also includes the tiles version (crawl-tiles) +---------------------------------------------------------------------" +} |