diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | prince | 3 |
3 files changed, 17 insertions, 12 deletions
@@ -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 @@ -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 000000000000..e4a205d56f52 --- /dev/null +++ b/prince @@ -0,0 +1,3 @@ +#!/bin/bash +cd /usr/share/sdlpop +./prince "$@" |