diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | abe.desktop | 8 | ||||
-rw-r--r-- | abe.patch | 24 |
4 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..50d0dfd4237a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = abe + pkgdesc = Scrolling, platform-jumping, key-collecting, ancient pyramid exploring game + pkgver = 1.1 + pkgrel = 10 + url = http://abe.sourceforge.net + arch = i686 + arch = x86_64 + license = GPL + depends = sdl_mixer + source = http://downloads.sourceforge.net/abe/abe-1.1.tar.gz + source = abe.patch + source = abe.desktop + md5sums = 5537920e1746708e1a631d84d3500f5c + md5sums = 74802a45e21b59d3e3d34f35ade252a4 + md5sums = 6ff678e781290bff780da154a32b9767 + +pkgname = abe + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a21cc45fb1f9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: +# Contributor: Jonathan Steel <mail at jsteel dot org> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgname=abe +pkgver=1.1 +pkgrel=10 +pkgdesc='Scrolling, platform-jumping, key-collecting, ancient pyramid exploring game' +arch=('i686' 'x86_64') +url='http://abe.sourceforge.net' +license=('GPL') +depends=('sdl_mixer') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + $pkgname.patch + $pkgname.desktop) +md5sums=('5537920e1746708e1a631d84d3500f5c' + '74802a45e21b59d3e3d34f35ade252a4' + '6ff678e781290bff780da154a32b9767') + +prepare() { + cd "$pkgname-$pkgver" + + patch -Np1 -i "$srcdir/$pkgname.patch" +} + +build() { + cd "$pkgname-$pkgver" + ./configure --prefix=/usr + + make +} + +package() { + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir" install + + install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop + install -dm755 "$pkgdir"/usr/share/$pkgname/images + cp -r images/ maps/ sounds/ "$pkgdir"/usr/share/$pkgname/ + cd "$pkgdir"/usr/share/$pkgname/images + tar -xf "$srcdir"/$pkgname-$pkgver/images/images.tar abe.bmp + chown root:root abe.bmp +} + +# vim:set ts=2 sw=2 et: diff --git a/abe.desktop b/abe.desktop new file mode 100644 index 000000000000..8c452e7af57a --- /dev/null +++ b/abe.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Abe +GenericName=Platform Game +Comment=Retro Platform Game +Icon=/usr/share/abe/images/abe.bmp +Exec=abe +Categories=Game; diff --git a/abe.patch b/abe.patch new file mode 100644 index 000000000000..33b0b1af004f --- /dev/null +++ b/abe.patch @@ -0,0 +1,24 @@ +diff -ur abe-1.1.orig/src/Directories.h abe-1.1/src/Directories.h +--- abe-1.1.orig/src/Directories.h 2012-08-25 16:43:45.194974618 +0100 ++++ abe-1.1/src/Directories.h 2012-08-25 16:48:07.489030577 +0100 +@@ -27,7 +27,7 @@ + + // BASE_DIR has not " arround it. + #ifndef BASE_DIR +-#define BASE_DIR . ++#define BASE_DIR /usr/share/abe + #endif + + #define IMAGES_DIR "images" +diff -ur abe-1.1.orig/src/Menu.c abe-1.1/src/Menu.c +--- abe-1.1.orig/src/Menu.c 2012-08-25 16:43:45.198307908 +0100 ++++ abe-1.1/src/Menu.c 2012-08-25 16:45:00.319469631 +0100 +@@ -116,7 +116,7 @@ + if(n == SOUND_ENABLED || n == MUSIC_ENABLED) + return sound_loaded; + else +- return 0; ++ return 1; + } + + void |