summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2017-02-19 13:22:07 +0100
committerMichael Straube2017-02-19 13:22:07 +0100
commitb2cd56d3b3b1117c700b3e0a177f66535a76d8b8 (patch)
tree3d58271a0f7058a0d4b66b2610079b6ba4b9efc7
parent6acf333d5b5aac706388482478da54ce0f290b63 (diff)
downloadaur-b2cd56d3b3b1117c700b3e0a177f66535a76d8b8.tar.gz
Update to 1.17
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD29
-rw-r--r--sdlpop.desktop2
-rw-r--r--sdlpop.sh16
4 files changed, 25 insertions, 36 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e04d73cf552..fa259b5470d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,19 @@
pkgbase = sdlpop
pkgdesc = An open-source port of Prince of Persia
- pkgver = 1.16
- pkgrel = 6
+ pkgver = 1.17
+ pkgrel = 1
url = https://github.com/NagyD/SDLPoP
arch = i686
arch = x86_64
license = GPL3
depends = sdl2_image
depends = sdl2_mixer
- source = sdlpop-1.16.tar.gz::https://github.com/NagyD/SDLPoP/archive/v1.16.tar.gz
- source = sdlpop.png::https://github.com/NagyD/SDLPoP/raw/master/data/icon.png
+ source = sdlpop-1.17.tar.gz::https://github.com/NagyD/SDLPoP/archive/v1.17.tar.gz
source = sdlpop.desktop
source = sdlpop.sh
- sha256sums = 4198eecdb2c4fed8f609af810962c943572df83da99c571146cee1596e7ee55b
- sha256sums = 180bf87d528da7840183d7c7647c361066f687ce49051233923acdbfc1d50c70
- sha256sums = 17a7bda2a51c6e6380c81f215387821280c4259fa5a24947de87c2926edad022
- sha256sums = 4673b27ab68c2fa8babf7a5b5fa3bd42012a05e5e8e190fe29d93873445beb18
+ sha256sums = aa4b254ab80b889a6db491b41c4f83467124d932cc0836e5979fa73b6c49a94d
+ sha256sums = 39ec3eb4cd4021424b4ee35b5cc68ca3735894369be5622f1825cf0ad2c21f6f
+ sha256sums = 08275c83ec0f19484b90b88a7a31cca2f4503d1cba11a02f1cf97ac4fec67475
pkgname = sdlpop
diff --git a/PKGBUILD b/PKGBUILD
index e1a49f3e40b..6f61f661f4a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,30 @@
# Maintainer: Michael Straube <straubem@gmx.de>
pkgname=sdlpop
-pkgver=1.16
-pkgrel=6
+pkgver=1.17
+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_image' 'sdl2_mixer')
source=("sdlpop-$pkgver.tar.gz::https://github.com/NagyD/SDLPoP/archive/v$pkgver.tar.gz"
- "sdlpop.png::https://github.com/NagyD/SDLPoP/raw/master/data/icon.png"
"sdlpop.desktop"
"sdlpop.sh")
-sha256sums=('4198eecdb2c4fed8f609af810962c943572df83da99c571146cee1596e7ee55b'
- '180bf87d528da7840183d7c7647c361066f687ce49051233923acdbfc1d50c70'
- '17a7bda2a51c6e6380c81f215387821280c4259fa5a24947de87c2926edad022'
- '4673b27ab68c2fa8babf7a5b5fa3bd42012a05e5e8e190fe29d93873445beb18')
+sha256sums=('aa4b254ab80b889a6db491b41c4f83467124d932cc0836e5979fa73b6c49a94d'
+ '39ec3eb4cd4021424b4ee35b5cc68ca3735894369be5622f1825cf0ad2c21f6f'
+ '08275c83ec0f19484b90b88a7a31cca2f4503d1cba11a02f1cf97ac4fec67475')
build() {
- cd SDLPoP-$pkgver
-
+ cd SDLPoP-$pkgver/src
make
}
package() {
cd SDLPoP-$pkgver
-
install -d "$pkgdir"/usr/{lib/sdlpop,share/sdlpop}
-
- install -m 755 prince "$pkgdir"/usr/lib/sdlpop
- install -m 644 SDLPoP.ini *.DAT "$pkgdir"/usr/share/sdlpop
- cp -r data doc "$pkgdir"/usr/share/sdlpop
-
- install -D -m 755 ../sdlpop.sh "$pkgdir"/usr/bin/prince
-
- install -D -m 644 ../sdlpop.png "$pkgdir"/usr/share/pixmaps/sdlpop.png
- install -D -m 644 ../sdlpop.desktop "$pkgdir"/usr/share/applications/sdlpop.desktop
+ install -m755 prince "$pkgdir"/usr/lib/sdlpop
+ cp -r data doc mods SDLPoP.ini "$pkgdir"/usr/share/sdlpop
+ install -Dm755 ../sdlpop.sh "$pkgdir"/usr/bin/prince
+ install -Dm644 ../sdlpop.desktop "$pkgdir"/usr/share/applications/sdlpop.desktop
}
diff --git a/sdlpop.desktop b/sdlpop.desktop
index c10ef2be432..f3671552f4b 100644
--- a/sdlpop.desktop
+++ b/sdlpop.desktop
@@ -4,7 +4,7 @@ Name=SDLPoP
Comment=An open-source port of Prince of Persia
StartupNotify=false
Exec=prince
-Icon=sdlpop.png
+Icon=/usr/share/sdlpop/data/icon.png
Terminal=false
Type=Application
Categories=Application;Game;ArcadeGame;
diff --git a/sdlpop.sh b/sdlpop.sh
index c6e2d86daa6..180be98b19c 100644
--- a/sdlpop.sh
+++ b/sdlpop.sh
@@ -3,15 +3,15 @@
GAMEDIR="/usr/share/sdlpop"
HOME_GAMEDIR="${HOME}/.SDLPoP"
-if [[ -d ${HOME_GAMEDIR} ]]; then
- cd ${HOME_GAMEDIR}
+if [[ -d "${HOME_GAMEDIR}" ]]; then
+ cd "${HOME_GAMEDIR}"
/usr/lib/sdlpop/prince "$@"
else
- mkdir ${HOME_GAMEDIR}
- cd ${HOME_GAMEDIR}
- ln -s ${GAMEDIR}/data
- ln -s ${GAMEDIR}/doc
- ln -s ${GAMEDIR}/*.DAT .
- ln -s ${GAMEDIR}/SDLPoP.ini
+ mkdir "${HOME_GAMEDIR}"
+ cd "${HOME_GAMEDIR}"
+ ln -s "${GAMEDIR}/data"
+ ln -s "${GAMEDIR}/doc"
+ ln -s "${GAMEDIR}/mods"
+ ln -s "${GAMEDIR}/SDLPoP.ini"
/usr/lib/sdlpop/prince "$@"
fi