summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Baldwin2015-07-04 05:33:54 -0400
committerSam Baldwin2015-07-04 05:33:54 -0400
commitfb61e722f6dc7f5854aa1bcd3b39a4c2368fda60 (patch)
tree1ad269606f642f5b388763eea4bd5f4bb399ca69
downloadaur-dwarffortress-obsidian.tar.gz
Initial import
-rw-r--r--.SRCINFO41
-rw-r--r--PKGBUILD102
-rw-r--r--dwarffortress7
-rw-r--r--dwarffortress-obsidian.install16
-rw-r--r--dwarffortress.desktop9
-rw-r--r--dwarffortress.pngbin0 -> 4647 bytes
6 files changed, 175 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5853b827e09
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,41 @@
+pkgbase = dwarffortress-obsidian
+ pkgdesc = A single-player fantasy game. You control a dwarven outpost or an adventurer in a randomly generated persistent world. Obsidian tileset.
+ pkgver = 0.34.11
+ pkgrel = 1
+ url = http://mayday.w.staszic.waw.pl/df.php
+ install = dwarffortress-obsidian.install
+ arch = i686
+ arch = x86_64
+ license = custom:dwarffortress
+ makedepends = unzip
+ makedepends = git
+ depends = gtk2
+ depends = glu
+ depends = sdl_image
+ depends = libsndfile
+ depends = openal
+ depends = sdl_ttf
+ depends = glew
+ provides = dwarffortress
+ conflicts = dwarffortress
+ noextract = dfg_34_11_win.zip
+ noextract = df_34_11_linux.tar.bz2
+ backup = opt/df_linux/data/init/colors.txt
+ backup = opt/df_linux/data/init/init.txt
+ backup = opt/df_linux/data/init/d_init.txt
+ backup = opt/df_linux/data/init/interface.txt
+ source = http://www.bay12games.com/dwarves/df_34_11_linux.tar.bz2
+ source = obsidian.zip::http://dffd.wimbli.com/download.php?id=7728&f=%5B16x16%5D+Obsidian+%28v.0.8%29.zip
+ source = git://github.com/svenstaro/dwarf_fortress_unfuck.git
+ source = dwarffortress
+ source = dwarffortress.desktop
+ source = dwarffortress.png
+ md5sums = 33e26a93e5914f7545fa1aaa53706eeb
+ md5sums = c3556f60ab81e2d4d586184ec7605cd6
+ md5sums = SKIP
+ md5sums = c19aacc31e8df354827db352fecfd200
+ md5sums = c8984d1eea6e409ecf339d6ee9e91e42
+ md5sums = b1d51f82400073af9bb179e34a9209d0
+
+pkgname = dwarffortress-obsidian
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f6ff4bd88bb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,102 @@
+# Maintainer: Samantha Baldwin <fuhsaz 'plus' aur 'at' cryptic 'dot' li>
+# Contributor: Patrick Chilton <chpatrick _at_ gmail _dot_ com>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Daenyth <Daenyth+Arch [AT] gmail [DOT] com>
+# Contributor: djnm <nmihalich [at} gmail dott com>
+# Contributor: Mark Pustjens <pustjens@dds.nl>
+pkgname=dwarffortress-obsidian
+pkgver=0.34.11
+_dfver=34_11
+_dfgver=34_11
+pkgrel=1
+pkgdesc="A single-player fantasy game. You control a dwarven outpost or an adventurer in a randomly generated persistent world. Obsidian tileset."
+arch=(i686 x86_64)
+# WIP Thread: http://www.bay12forums.com/smf/index.php?topic=126934
+url="http://mayday.w.staszic.waw.pl/df.php"
+install="$pkgname.install"
+license=('custom:dwarffortress')
+depends=(gtk2 glu sdl_image libsndfile openal sdl_ttf glew)
+makedepends=(unzip git)
+if [[ $CARCH == 'x86_64' ]]; then
+ depends=(gcc-multilib lib32-gtk2 lib32-glu lib32-sdl_image lib32-libsndfile lib32-openal
+ lib32-libxdamage lib32-ncurses lib32-sdl_ttf lib32-glew lib32-libpng)
+ optdepends=('lib32-nvidia-utils: If you have nvidia graphics'
+ 'lib32-catalyst-utils: If you have ATI graphics'
+ 'lib32-alsa-lib: for alsa sound'
+ 'lib32-libpulse: for pulse sound')
+fi
+backup=('opt/df_linux/data/init/colors.txt'
+ 'opt/df_linux/data/init/init.txt'
+ 'opt/df_linux/data/init/d_init.txt'
+ 'opt/df_linux/data/init/interface.txt')
+conflicts=(dwarffortress)
+provides=(dwarffortress)
+noextract=(dfg_${_dfgver}_win.zip df_${_dfver}_linux.tar.bz2)
+# I made a fucking github repo with the sole purpose of unfucking df a bit
+# We try to compile whatever little bit of df is open source
+source=(http://www.bay12games.com/dwarves/df_${_dfver}_linux.tar.bz2
+ obsidian.zip::http://dffd.wimbli.com/download.php?id=7728\&f=%5B16x16%5D+Obsidian+%28v.0.8%29.zip
+ git://github.com/svenstaro/dwarf_fortress_unfuck.git
+ dwarffortress
+ dwarffortress.desktop
+ dwarffortress.png)
+md5sums=('33e26a93e5914f7545fa1aaa53706eeb'
+ 'c3556f60ab81e2d4d586184ec7605cd6'
+ 'SKIP'
+ 'c19aacc31e8df354827db352fecfd200'
+ 'c8984d1eea6e409ecf339d6ee9e91e42'
+ 'b1d51f82400073af9bb179e34a9209d0')
+
+build() {
+ cd $srcdir/dwarf_fortress_unfuck
+ make
+}
+
+package() {
+ cd "${srcdir}"
+ tar -f "df_${_dfver}_linux.tar.bz2" -x \
+ --exclude "df_linux/raw" \
+ --exclude "df_linux/data/art" \
+ --exclude "df_linux/data/init/colors.txt" \
+ --exclude "df_linux/data/init/init.txt"
+
+ unzip -qod obsidian "obsidian.zip" \
+ "\[16x16\]\ Obsidian/raw/*" \
+ "\[16x16\]\ Obsidian/data/art/*" \
+ "\[16x16\]\ Obsidian/data/init/colors.txt" \
+ "\[16x16\]\ Obsidian/data/init/init.txt"
+
+ cp -rf $srcdir/obsidian/"[16x16] Obsidian"/* $srcdir/df_linux
+
+ cd $srcdir/df_linux
+ install -dm755 $pkgdir/opt/
+ cp -r $srcdir/df_linux/ $pkgdir/opt/
+
+ # Yay for precompiled stuff with junk permissions! :D
+ find $pkgdir/opt/df_linux -type d -exec chmod 755 {} +
+ find $pkgdir/opt/df_linux -type f -exec chmod 644 {} +
+
+ install -Dm755 $srcdir/dwarffortress $pkgdir/usr/bin/dwarffortress
+
+ chmod 755 $pkgdir/opt/df_linux/libs/Dwarf_Fortress
+ install -Dm755 $srcdir/dwarf_fortress_unfuck/libs/libgraphics.so $pkgdir/opt/df_linux/libs/libgraphics.so
+ ln -s /usr/lib32/libpng.so $pkgdir/opt/df_linux/libs/libpng.so.3
+ rm $pkgdir/opt/df_linux/libs/{libgcc_s.so.1,libstdc++.so.6}
+
+ install -d -m775 -o root -g games $pkgdir/opt/df_linux/data/save
+
+ # This probably is overkill, but I don't know what specific files df needs permission for in here.
+ chmod 775 $pkgdir/opt/df_linux
+ chown root:games $pkgdir/opt/df_linux
+ chown -R root:games $pkgdir/opt/df_linux/data
+ find $pkgdir/opt/df_linux/data -type d -exec chmod 775 {} +
+ find $pkgdir/opt/df_linux/data -type f -exec chmod 664 {} +
+
+ # Desktop launcher with icon
+ install -Dm644 $srcdir/dwarffortress.desktop $pkgdir/usr/share/applications/dwarffortress.desktop
+ install -Dm644 $srcdir/dwarffortress.png $pkgdir/usr/share/pixmaps/dwarffortress.png
+
+ install -Dm644 $srcdir/df_linux/readme.txt $pkgdir/usr/share/licenses/dwarffortress/readme.txt
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/dwarffortress b/dwarffortress
new file mode 100644
index 00000000000..d8f236eaac8
--- /dev/null
+++ b/dwarffortress
@@ -0,0 +1,7 @@
+#!/bin/sh
+cd /opt/df_linux
+export SDL_DISABLE_LOCK_KEYS=1 # Work around for bug in Debian/Ubuntu SDL patch.
+#export SDL_VIDEO_CENTERED=1 # Centre the screen. Messes up resizing.
+
+umask 0002 # Make sure that any saves created get 775/664
+exec ./libs/Dwarf_Fortress "$@"
diff --git a/dwarffortress-obsidian.install b/dwarffortress-obsidian.install
new file mode 100644
index 00000000000..11ae453a77c
--- /dev/null
+++ b/dwarffortress-obsidian.install
@@ -0,0 +1,16 @@
+## arg 1: the new package version
+post_install() {
+ echo "Make sure to add your user to the games group to play dwarffortress"
+ post_upgrade $1 0
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ # Make sure that permissions are correct
+ chown -R root:games /opt/df_linux/data
+ find /opt/df_linux/data/save -type d -exec chmod 775 {} + &
+ find /opt/df_linux/data/save -type f -exec chmod 664 {} + &
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/dwarffortress.desktop b/dwarffortress.desktop
new file mode 100644
index 00000000000..79559907bc9
--- /dev/null
+++ b/dwarffortress.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Dwarf Fortress
+GenericName=Dwarf Fortress
+Comment=A single-player fantasy game.
+Exec=dwarffortress
+Icon=/usr/share/pixmaps/dwarffortress.png
+Terminal=false
+Type=Application
+Categories=Game; \ No newline at end of file
diff --git a/dwarffortress.png b/dwarffortress.png
new file mode 100644
index 00000000000..97c864f100d
--- /dev/null
+++ b/dwarffortress.png
Binary files differ