summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Keen2015-08-09 08:30:49 -0400
committerKyle Keen2015-08-09 08:30:49 -0400
commit571f747a38d65cd8fdf959b103787d7635535df4 (patch)
tree50f88916d3393020ce8f375d3b08dce734347824
downloadaur-clonekeen.tar.gz
aur3 recovery
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD41
-rw-r--r--clonekeen.desktop10
-rw-r--r--clonekeen.install8
-rw-r--r--clonekeen.pngbin0 -> 2310 bytes
-rw-r--r--clonekeen.sh3
6 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b0d6492c3d6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = clonekeen
+ pkgdesc = A clone of the classic DOS game, Commander Keen: Invasion of the Vorticons
+ pkgver = 8.4
+ pkgrel = 2
+ url = http://clonekeen.sourceforge.net/
+ install = clonekeen.install
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = gcc-libs
+ depends = sdl
+ noextract = 1keen131.zip
+ source = http://clonekeen.sourceforge.net/files/clonekeen-src-84.tar.gz
+ source = http://clonekeen.sourceforge.net/files/1keen131.zip
+ source = clonekeen.desktop
+ source = clonekeen.png
+ source = clonekeen.sh
+ md5sums = 0179c34727d044f07a1c00df340134bd
+ md5sums = 0561dd3e32ea4a0f965bd2288a3e64b3
+ md5sums = 73d81bb50749f1f8b3b0fa55a724cca5
+ md5sums = 77f4c659fc773abb297e4f5cf1bbbe70
+ md5sums = dbbb923232b390def47eb8f4eca966a8
+
+pkgname = clonekeen
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8ed33f47c9d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: TDY <tdy@gmx.com>
+
+pkgname=clonekeen
+pkgver=8.4
+pkgrel=2
+pkgdesc="A clone of the classic DOS game, Commander Keen: Invasion of the Vorticons"
+arch=('i686' 'x86_64')
+url="http://clonekeen.sourceforge.net/"
+license=('GPL3')
+depends=('gcc-libs' 'sdl')
+install=$pkgname.install
+source=(http://$pkgname.sourceforge.net/files/$pkgname-src-${pkgver/.}.tar.gz
+ http://$pkgname.sourceforge.net/files/1keen131.zip
+ $pkgname.desktop $pkgname.png $pkgname.sh)
+noextract=(1keen131.zip)
+md5sums=('0179c34727d044f07a1c00df340134bd'
+ '0561dd3e32ea4a0f965bd2288a3e64b3'
+ '73d81bb50749f1f8b3b0fa55a724cca5'
+ '77f4c659fc773abb297e4f5cf1bbbe70'
+ 'dbbb923232b390def47eb8f4eca966a8')
+
+build() {
+ cd "$srcdir/keen/src"
+ sed -i "s#gcc -O2#gcc $CFLAGS#g" Makefile
+ sed -i "s#-lSDL -lSDLmain -lstdc++#-lm -lSDL -lSDLmain -lstdc++#g" Makefile
+ make
+}
+
+package() {
+ cd "$srcdir/keen"
+ install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
+ install -Dm644 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
+
+ install -Dm755 src/keen "$pkgdir/usr/lib/$pkgname/keen"
+ cp -rf bin/* "$pkgdir/usr/lib/$pkgname"
+ bsdtar -xf "$srcdir/1keen131.zip" -C "$pkgdir/usr/lib/$pkgname/data"
+ find "$pkgdir/usr/lib/$pkgname" -type f ! -name keen -exec chmod 644 '{}' \;
+ find "$pkgdir/usr/lib/$pkgname" -type d -exec chmod 755 '{}' \;
+}
diff --git a/clonekeen.desktop b/clonekeen.desktop
new file mode 100644
index 00000000000..f2701dc9a08
--- /dev/null
+++ b/clonekeen.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=CloneKeen
+GenericName=Adventure Game
+Comment=A Commander Keen clone
+TryExec=/usr/bin/clonekeen
+Exec=clonekeen
+Icon=/usr/share/pixmaps/clonekeen.png
+Categories=Game;AdventureGame:
diff --git a/clonekeen.install b/clonekeen.install
new file mode 100644
index 00000000000..6297997de7a
--- /dev/null
+++ b/clonekeen.install
@@ -0,0 +1,8 @@
+post_install() {
+ # allow user to save games
+ chmod +s /usr/lib/clonekeen/keen
+}
+
+post_upgrade() {
+ post_install $1
+}
diff --git a/clonekeen.png b/clonekeen.png
new file mode 100644
index 00000000000..6e6189a1254
--- /dev/null
+++ b/clonekeen.png
Binary files differ
diff --git a/clonekeen.sh b/clonekeen.sh
new file mode 100644
index 00000000000..341ea82067d
--- /dev/null
+++ b/clonekeen.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd /usr/lib/clonekeen
+exec ./keen "$@"