diff options
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | PKGBUILD | 71 | ||||
-rw-r--r-- | egoboo.desktop | 7 | ||||
-rw-r--r-- | egoboo.png | bin | 0 -> 956 bytes | |||
-rw-r--r-- | keyboard_directions.patch | 13 |
5 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b5712e92d711 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = egoboo + pkgdesc = An action RPG/dungeon crawling adventure with OpenGL 3D graphics. + pkgver = 2.8.1 + pkgrel = 5 + url = http://egoboo.sourceforge.net/ + arch = i686 + arch = x86_64 + license = GPL + depends = sdl_image + depends = sdl_mixer + depends = sdl_ttf + depends = physfs + depends = enet + depends = mesa + conflicts = egoboo-data + source = http://downloads.sourceforge.net/egoboo/egoboo-2.8.1.tar.gz + source = keyboard_directions.patch + source = egoboo.png + source = egoboo.desktop + md5sums = e6f3130695d297dcd9fe74e50bd59b68 + md5sums = d3eea226065d9a244b59cd960c5c8878 + md5sums = 7019f17b607fd45acf0d48ade746326a + md5sums = b81e0c8f3e0b9d8640d0cfc9b6d320a8 + +pkgname = egoboo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ccc6c6ef6ac0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer: SanskritFritz (gmail) +# 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=5 +arch=('i686' 'x86_64') +license=('GPL') +pkgdesc="An action RPG/dungeon crawling adventure with OpenGL 3D graphics." +url="http://egoboo.sourceforge.net/" +depends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'physfs' 'enet' 'mesa') +#makedepends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'physfs' 'enet' 'mesa') +conflicts=(egoboo-data) +source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + "keyboard_directions.patch" + "$pkgname.png" + "$pkgname.desktop") + +build() { + 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 + + 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 + + # fix linking + sed -i -e 's#-lenet#-lenet -lm#g' game/Makefile + + # fix keyboard bug + patch -p0 --binary < "$srcdir/keyboard_directions.patch" + + make all +} + +package() { + + cd "$srcdir/egoboo-$pkgver" + + install -Dm755 src/game/egoboo-2.x $pkgdir/usr/bin/egoboo + install -d $pkgdir/usr/share/doc + cp -rf doc/ $pkgdir/usr/share/doc/$pkgname/ + + # Copy data and fix permissions + install -d ${pkgdir}/usr/share/egoboo + cp -rf controls.txt setup.txt basicdat/ modules/ ${pkgdir}/usr/share/egoboo/ + find ${pkgdir}/usr/share/egoboo -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 +} + +md5sums=('e6f3130695d297dcd9fe74e50bd59b68' + 'd3eea226065d9a244b59cd960c5c8878' + '7019f17b607fd45acf0d48ade746326a' + 'b81e0c8f3e0b9d8640d0cfc9b6d320a8') diff --git a/egoboo.desktop b/egoboo.desktop new file mode 100644 index 000000000000..b2f2870e4a42 --- /dev/null +++ b/egoboo.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Egoboo +Exec=egoboo +Icon=egoboo +Type=Application +Comment=A 3D OpenGL dungeon-crawl +Categories=Game;AdventureGame;RolePlaying; diff --git a/egoboo.png b/egoboo.png Binary files differnew file mode 100644 index 000000000000..984be247da3b --- /dev/null +++ b/egoboo.png diff --git a/keyboard_directions.patch b/keyboard_directions.patch new file mode 100644 index 000000000000..d31d0af5316b --- /dev/null +++ b/keyboard_directions.patch @@ -0,0 +1,13 @@ +--- game/game.1.c 2010-12-22 20:33:14.000000000 +0100
++++ game/game.c 2013-11-28 00:22:58.405945051 +0100
+@@ -2052,8 +2052,8 @@
+ if (( CAM_TURN_GOOD == PCamera->turn_mode && 1 == local_numlpla ) ||
+ !control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_CAMERA ) )
+ {
+- joy_pos.x = ( control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_RIGHT ) - control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_LEFT ) );
+- joy_pos.y = ( control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_DOWN ) - control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_UP ) );
++ joy_pos.x = ( (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_RIGHT ) - (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_LEFT ) );
++ joy_pos.y = ( (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_DOWN ) - (int)control_is_pressed( INPUT_DEVICE_KEYBOARD, CONTROL_UP ) );
+
+ if ( CAM_TURN_GOOD == PCamera->turn_mode &&
+ 1 == local_numlpla ) joy_pos.x = 0;
|