[arch-commits] Commit in dwarffortress/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at nymeria.archlinux.org
Mon May 27 05:34:01 UTC 2013
Date: Monday, May 27, 2013 @ 07:34:01
Author: svenstaro
Revision: 91748
upgpkg: dwarffortress 0.34.11-3
Try to unfuck df
Modified:
dwarffortress/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-27 05:19:22 UTC (rev 91747)
+++ PKGBUILD 2013-05-27 05:34:01 UTC (rev 91748)
@@ -5,17 +5,18 @@
pkgname=dwarffortress
pkgver=0.34.11
_pkgver=34_11
-pkgrel=2
+pkgrel=3
pkgdesc="A single-player fantasy game. You control a dwarven outpost or an adventurer in a randomly generated persistent world."
arch=(i686 x86_64)
# WIP Thread: http://www.bay12forums.com/smf/index.php?topic=66142.0
url="http://www.bay12games.com/dwarves/"
install="$pkgname.install"
license=('custom:dwarffortress')
-depends=(gtk2 glu sdl_image libsndfile openal sdl_ttf)
+depends=(gtk2 glu sdl_image libsndfile openal sdl_ttf glew)
+makedepends=(git)
if [[ $CARCH == 'x86_64' ]]; then
- depends=(lib32-gtk2 lib32-glu lib32-sdl_image lib32-libsndfile lib32-openal
- lib32-libxdamage lib32-ncurses lib32-sdl_ttf)
+ depends=(gcc-multilib lib32-gtk2 lib32-glu lib32-sdl_image lib32-libsndfile lib32-openal
+ lib32-libxdamage lib32-ncurses lib32-sdl_ttf lib32-glew)
optdepends=('lib32-nvidia-utils: If you have nvidia graphics'
'lib32-catalyst-utils: If you have ATI graphics'
'lib32-alsa-lib: for alsa sound'
@@ -25,16 +26,25 @@
'opt/df_linux/data/init/init.txt'
'opt/df_linux/data/init/d_init.txt'
'opt/df_linux/data/init/interface.txt')
-
+# 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_${_pkgver}_linux.tar.bz2
+ git://github.com/svenstaro/dwarf_fortress_unfuck.git
dwarffortress
dwarffortress.desktop
dwarffortress.png)
md5sums=('33e26a93e5914f7545fa1aaa53706eeb'
+ 'SKIP'
'c19aacc31e8df354827db352fecfd200'
'c8984d1eea6e409ecf339d6ee9e91e42'
'b1d51f82400073af9bb179e34a9209d0')
+build() {
+ cd $srcdir/dwarf_fortress_unfuck
+
+ make
+}
+
package() {
cd $srcdir/df_linux
install -dm755 $pkgdir/opt/
@@ -47,6 +57,9 @@
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
More information about the arch-commits
mailing list