summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2016-06-03 18:14:11 +0200
committerMichael Straube2016-06-03 18:14:11 +0200
commit7613a5fb5bddccb5604b794643d9496315f0aac8 (patch)
tree2280b400b0d807ae9f35693039bb0d18265e2074
downloadaur-7613a5fb5bddccb5604b794643d9496315f0aac8.tar.gz
Initial import
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD33
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f678548285f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = sdlpop
+ pkgdesc = An open-source port of Prince of Persia
+ pkgver = 1.16
+ pkgrel = 1
+ url = https://github.com/NagyD/SDLPoP
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = sdl2
+ depends = sdl2_image
+ depends = sdl2_mixer
+ source = https://github.com/NagyD/SDLPoP/archive/v1.16.tar.gz
+ sha1sums = 9e6f124705ef3c6e9c66c34046c9d4d5deaffa57
+
+pkgname = sdlpop
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..514b93aacee
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+
+# Maintainer: Michael Straube <m.s.online gmx.de>
+
+pkgname=sdlpop
+pkgver=1.16
+pkgrel=1
+pkgdesc="An open-source port of Prince of Persia"
+arch=('i686' 'x86_64')
+license=('GPL3')
+url="https://github.com/NagyD/SDLPoP"
+depends=('sdl2' 'sdl2_image' 'sdl2_mixer')
+source=("https://github.com/NagyD/SDLPoP/archive/v$pkgver.tar.gz")
+sha1sums=('9e6f124705ef3c6e9c66c34046c9d4d5deaffa57')
+
+prepare() {
+ printf '#!/bin/bash\ncd /usr/share/sdlpop\n./prince "$@"\n' > prince
+}
+
+build() {
+ cd SDLPoP-$pkgver
+ make
+}
+
+package() {
+ cd SDLPoP-$pkgver
+
+ install -d -m 755 "$pkgdir"/usr/share/{sdlpop,doc/sdlpop}
+
+ cp -r data prince SDLPoP.ini *.DAT "$pkgdir/usr/share/sdlpop/"
+ cp doc/* "$pkgdir/usr/share/doc/sdlpop/"
+
+ install -D -m 755 "$srcdir/prince" "$pkgdir/usr/bin/prince"
+}