[arch-commits] Commit in dwarffortress/trunk (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Aug 12 00:48:33 UTC 2014


    Date: Tuesday, August 12, 2014 @ 02:48:33
  Author: svenstaro
Revision: 117219

upgpkg: dwarffortress 0.40.08-1

upstream release 0.40.08

Added:
  dwarffortress/trunk/dwarffortress.install
Modified:
  dwarffortress/trunk/PKGBUILD
  dwarffortress/trunk/dwarffortress

-----------------------+
 PKGBUILD              |    9 +++++----
 dwarffortress         |   11 ++++++++---
 dwarffortress.install |    8 ++++++++
 3 files changed, 21 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-12 00:39:22 UTC (rev 117218)
+++ PKGBUILD	2014-08-12 00:48:33 UTC (rev 117219)
@@ -3,8 +3,8 @@
 # Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com>
 # Contributor: djnm <nmihalich [at} gmail dott com>
 pkgname=dwarffortress
-pkgver=0.40.06
-_pkgver=40_06
+pkgver=0.40.08
+_pkgver=40_08
 pkgrel=1
 pkgdesc="A single-player fantasy game. You control a dwarven outpost or an adventurer in a randomly generated persistent world."
 arch=(i686 x86_64)
@@ -13,6 +13,7 @@
 depends=(gtk2 glu sdl_image libsndfile openal sdl_ttf glew gcc-libs)
 makedepends=(git cmake)
 options=('!strip')
+install=${pkgname}.install
 if [[ $CARCH == 'x86_64' ]]; then
   makedepends+=(gcc-multilib)
   depends=(gcc-libs-multilib lib32-gtk2 lib32-glu lib32-sdl_image lib32-libsndfile lib32-openal
@@ -29,9 +30,9 @@
         dwarffortress
         dwarffortress.desktop
         dwarffortress.png)
-sha256sums=('90ba51d59484d210e04f287526aec72712bff9db2e0becc3638207d3cf9f7e68'
+sha256sums=('24fa1642b84a108b39fd82eb703b8d8c3f678e4d4bd61a56b6416d99ab76f5ab'
             'SKIP'
-            '4a7cc39dabe4fa3c28fdb9bdff83f7cdf55de0beff700fd6ebe605dda2f81688'
+            '7dc1f0ed0d496b21f4f240334f77dc43b728823f3e1c4ea25ce768691346ec07'
             'e79e3d945c6cc0da58f4ca30a210c7bf1bc3149fd10406d1262a6214eb40445a'
             '83183abc70b11944720b0d86f4efd07468f786b03fa52fe429ca8e371f708e0f')
 

Modified: dwarffortress
===================================================================
--- dwarffortress	2014-08-12 00:39:22 UTC (rev 117218)
+++ dwarffortress	2014-08-12 00:48:33 UTC (rev 117219)
@@ -5,11 +5,16 @@
 pkgname=dwarffortress #To be set by PKGBUILD
 
 if [[ ! -d "$HOME/.$pkgname" ]]; then
-    mkdir "$HOME/.$pkgname"
-    cp -rn /opt/"$pkgname"/data "$HOME/.$pkgname/"
-    cp -rsn /opt/"$pkgname"/* "$HOME/.$pkgname/"
+    mkdir -p "$HOME/.$pkgname/data"
+    ln -s /opt/"$pkgname"/raw "$HOME/.$pkgname/raw"
+    ln -s /opt/"$pkgname"/libs "$HOME/.$pkgname/libs"
+    cp -rn /opt/"$pkgname"/data/init "$HOME/.$pkgname/data/init"
 fi
 
+for link in announcement art dipscript help index initial_movies movies shader.fs shader.vs sound speech; do
+    cp -r /opt/"$pkgname"/data/$link "$HOME/.$pkgname/data/$link"
+done
+
 cd "$HOME/.$pkgname"
 exec ./libs/Dwarf_Fortress "$@"
 

Added: dwarffortress.install
===================================================================
--- dwarffortress.install	                        (rev 0)
+++ dwarffortress.install	2014-08-12 00:48:33 UTC (rev 117219)
@@ -0,0 +1,8 @@
+post_upgrade() {
+    echo "You might have delete your ~/.dwarffortress directory to get the new file layout."
+    echo "Of course, you can backup your saves."
+}
+
+post_install() {
+    post_upgrade
+}




More information about the arch-commits mailing list