summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2016-06-15 14:11:46 +0200
committerMichael Straube2016-06-15 14:11:46 +0200
commitda23a4c58fd9c75ae33436f79edaa6181283fc38 (patch)
tree17af587b8974909a95098304ed72f219973f361f
parent83ca6e4aca3fcdbfd336387b82fd298607760ac2 (diff)
downloadaur-da23a4c58fd9c75ae33436f79edaa6181283fc38.tar.gz
update PKGBUILD
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD21
-rw-r--r--prince3
3 files changed, 17 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f678548285f..02d6bdc31ae 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,17 @@
pkgbase = sdlpop
pkgdesc = An open-source port of Prince of Persia
pkgver = 1.16
- pkgrel = 1
+ pkgrel = 2
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
+ source = prince
sha1sums = 9e6f124705ef3c6e9c66c34046c9d4d5deaffa57
+ sha1sums = 7c558b7d7535fbc174bf4cc2ad9221da73fe2401
pkgname = sdlpop
diff --git a/PKGBUILD b/PKGBUILD
index a11685fb9d9..43929e6a73c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,20 @@
pkgname=sdlpop
pkgver=1.16
-pkgrel=1
+pkgrel=2
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
-}
+depends=('sdl2_image' 'sdl2_mixer')
+source=("https://github.com/NagyD/SDLPoP/archive/v$pkgver.tar.gz"
+ "prince")
+sha1sums=('9e6f124705ef3c6e9c66c34046c9d4d5deaffa57'
+ '7c558b7d7535fbc174bf4cc2ad9221da73fe2401')
build() {
cd SDLPoP-$pkgver
+
make
}
@@ -25,8 +24,10 @@ package() {
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 -m 755 prince "$pkgdir/usr/share/sdlpop/"
+ install -m 644 SDLPoP.ini *.DAT "$pkgdir/usr/share/sdlpop/"
+ install -m 644 doc/* "$pkgdir/usr/share/doc/sdlpop/"
+ cp -r data "$pkgdir/usr/share/sdlpop/"
install -D -m 755 "$srcdir/prince" "$pkgdir/usr/bin/prince"
}
diff --git a/prince b/prince
new file mode 100644
index 00000000000..e4a205d56f5
--- /dev/null
+++ b/prince
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /usr/share/sdlpop
+./prince "$@"