summaryrefslogtreecommitdiff
path: root/community/egoboo/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/egoboo/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/egoboo/PKGBUILD')
-rw-r--r--community/egoboo/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/community/egoboo/PKGBUILD b/community/egoboo/PKGBUILD
new file mode 100644
index 000000000..e3d41266e
--- /dev/null
+++ b/community/egoboo/PKGBUILD
@@ -0,0 +1,57 @@
+# $Id: PKGBUILD 36333 2010-12-30 07:44:32Z lcarlier $
+# Maintainer: Laurent Carlier <lordheavym@gmail.com>
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Arkham <arkham at archlinux dot us>
+# Contributor: rabyte <rabyte*gmail>
+# Contributor: Andres Blanc <andresblanc@gmail.com>
+
+pkgname=egoboo
+pkgver=2.8.1
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('GPL')
+pkgdesc="An open-source action RPG/dungeon crawling adventure with OpenGL 3D graphics"
+url="http://egoboo.sourceforge.net/"
+depends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'physfs' 'enet')
+makedepends=('mesa')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname.png
+ $pkgname.desktop)
+md5sums=('e6f3130695d297dcd9fe74e50bd59b68'
+ '7019f17b607fd45acf0d48ade746326a'
+ 'b81e0c8f3e0b9d8640d0cfc9b6d320a8')
+
+build() {
+ cd "$srcdir/egoboo-$pkgver/src"
+
+ # fix data paths
+ sed -i -e 's#egoboo-2.x#egoboo#g' \
+ -e 's#share/games#share#g' \
+ -e 's#etc#share#g' \
+ -e 's#games#bin#g' \
+ game/platform/file_linux.c
+
+ make all
+}
+
+package() {
+ cd "$srcdir/egoboo-$pkgver"
+
+ # Patch default depth to 24 and sound
+ sed -i -e 's/\[COLOR_DEPTH\] : "32"/\[COLOR_DEPTH\] : "24"/g' \
+ -e 's/\[Z_DEPTH\] : "32"/\[Z_DEPTH\] : "24"/g' \
+ -e 's/\[OUTPUT_BUFFER_SIZE\] : "2548/\[OUTPUT_BUFFER_SIZE\] : "2048/g' \
+ setup.txt
+
+ # Copy data and fix permissions
+ install -Dm755 src/game/egoboo-2.x $pkgdir/usr/bin/egoboo
+ install -d $pkgdir/usr/share/{doc/,$pkgname}
+ cp -rf controls.txt setup.txt basicdat/ modules/ $pkgdir/usr/share/$pkgname/
+ cp -rf doc/ $pkgdir/usr/share/doc/$pkgname/
+ find $pkgdir/usr/share/$pkgname -type f -exec chmod 644 {} +
+
+ # Install icon and desktop files
+ install -Dm 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
+ install -Dm 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
+}
+