[arch-commits] Commit in stone-soup/repos (6 files)

Allan McRae allan at archlinux.org
Thu Sep 10 04:28:11 UTC 2015


    Date: Thursday, September 10, 2015 @ 06:28:10
  Author: allan
Revision: 139741

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  stone-soup/repos/community-staging-i686/
  stone-soup/repos/community-staging-i686/PKGBUILD
    (from rev 139740, stone-soup/trunk/PKGBUILD)
  stone-soup/repos/community-staging-i686/stone-soup.install
    (from rev 139740, stone-soup/trunk/stone-soup.install)
  stone-soup/repos/community-staging-x86_64/
  stone-soup/repos/community-staging-x86_64/PKGBUILD
    (from rev 139740, stone-soup/trunk/PKGBUILD)
  stone-soup/repos/community-staging-x86_64/stone-soup.install
    (from rev 139740, stone-soup/trunk/stone-soup.install)

---------------------------------------------+
 community-staging-i686/PKGBUILD             |   75 ++++++++++++++++++++++++++
 community-staging-i686/stone-soup.install   |   11 +++
 community-staging-x86_64/PKGBUILD           |   75 ++++++++++++++++++++++++++
 community-staging-x86_64/stone-soup.install |   11 +++
 4 files changed, 172 insertions(+)

Copied: stone-soup/repos/community-staging-i686/PKGBUILD (from rev 139740, stone-soup/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-10 04:28:10 UTC (rev 139741)
@@ -0,0 +1,75 @@
+# Maintainer: Jakob Gruber <jakob.gruber at gmail.com>
+
+pkgname=stone-soup
+pkgver=0.16.2
+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=('lua51' 'ncurses' 'sdl2_image' 'sqlite' 'glu' 'freetype2' 'ttf-dejavu')
+makedepends=('bison' 'flex' 'gendesk' 'mesa')
+conflicts=('crawl' 'stone-soup-tile' 'stone-soup-git')
+license=('custom')
+install=stone-soup.install
+source=("http://crawl.develz.org/release/stone_soup-${pkgver}-nodeps.tar.xz")
+
+# used by gendesk to create .desktop file
+_exec=('crawl-tiles')
+_name=('Dungeon Crawl Stone Soup')
+
+package() {
+    cd "$srcdir"
+    gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
+            --exec 'crawl-tiles' --name 'Dungeon Crawl Stone Soup' PKGBUILD
+
+    cd "stone_soup-${pkgver}/source"
+
+    # 0.16.0 weirdness
+    sed -i 's|SDL_main.h|SDL2/&|' main.cc
+
+    # git tarball weirdness
+    echo "$pkgver" > util/release_ver
+
+    # 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=('55b3b478d8f2321a32cfcf86e1d17841')

Copied: stone-soup/repos/community-staging-i686/stone-soup.install (from rev 139740, stone-soup/trunk/stone-soup.install)
===================================================================
--- community-staging-i686/stone-soup.install	                        (rev 0)
+++ community-staging-i686/stone-soup.install	2015-09-10 04:28:10 UTC (rev 139741)
@@ -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.
+---------------------------------------------------------------------"
+}

Copied: stone-soup/repos/community-staging-x86_64/PKGBUILD (from rev 139740, stone-soup/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-10 04:28:10 UTC (rev 139741)
@@ -0,0 +1,75 @@
+# Maintainer: Jakob Gruber <jakob.gruber at gmail.com>
+
+pkgname=stone-soup
+pkgver=0.16.2
+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=('lua51' 'ncurses' 'sdl2_image' 'sqlite' 'glu' 'freetype2' 'ttf-dejavu')
+makedepends=('bison' 'flex' 'gendesk' 'mesa')
+conflicts=('crawl' 'stone-soup-tile' 'stone-soup-git')
+license=('custom')
+install=stone-soup.install
+source=("http://crawl.develz.org/release/stone_soup-${pkgver}-nodeps.tar.xz")
+
+# used by gendesk to create .desktop file
+_exec=('crawl-tiles')
+_name=('Dungeon Crawl Stone Soup')
+
+package() {
+    cd "$srcdir"
+    gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" \
+            --exec 'crawl-tiles' --name 'Dungeon Crawl Stone Soup' PKGBUILD
+
+    cd "stone_soup-${pkgver}/source"
+
+    # 0.16.0 weirdness
+    sed -i 's|SDL_main.h|SDL2/&|' main.cc
+
+    # git tarball weirdness
+    echo "$pkgver" > util/release_ver
+
+    # 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=('55b3b478d8f2321a32cfcf86e1d17841')

Copied: stone-soup/repos/community-staging-x86_64/stone-soup.install (from rev 139740, stone-soup/trunk/stone-soup.install)
===================================================================
--- community-staging-x86_64/stone-soup.install	                        (rev 0)
+++ community-staging-x86_64/stone-soup.install	2015-09-10 04:28:10 UTC (rev 139741)
@@ -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.
+---------------------------------------------------------------------"
+}



More information about the arch-commits mailing list