summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Straube2017-02-22 09:01:06 +0100
committerMichael Straube2017-02-22 09:01:06 +0100
commit99c6cb0488de24af1f74f9bd915b70404cd870d9 (patch)
tree6ba0138c380b0814aa387d871a338c0eaeb63737
parentb2cd56d3b3b1117c700b3e0a177f66535a76d8b8 (diff)
downloadaur-99c6cb0488de24af1f74f9bd915b70404cd870d9.tar.gz
Use gendesk
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD11
-rw-r--r--sdlpop.desktop11
3 files changed, 10 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index fa259b5470d..2d0d67bb598 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,17 @@
pkgbase = sdlpop
pkgdesc = An open-source port of Prince of Persia
pkgver = 1.17
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/NagyD/SDLPoP
arch = i686
arch = x86_64
license = GPL3
+ makedepends = gendesk
depends = sdl2_image
depends = sdl2_mixer
source = sdlpop-1.17.tar.gz::https://github.com/NagyD/SDLPoP/archive/v1.17.tar.gz
- source = sdlpop.desktop
source = sdlpop.sh
sha256sums = aa4b254ab80b889a6db491b41c4f83467124d932cc0836e5979fa73b6c49a94d
- sha256sums = 39ec3eb4cd4021424b4ee35b5cc68ca3735894369be5622f1825cf0ad2c21f6f
sha256sums = 08275c83ec0f19484b90b88a7a31cca2f4503d1cba11a02f1cf97ac4fec67475
pkgname = sdlpop
diff --git a/PKGBUILD b/PKGBUILD
index 6f61f661f4a..fc6f7d8aeda 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,19 +2,23 @@
pkgname=sdlpop
pkgver=1.17
-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_image' 'sdl2_mixer')
+makedepends=('gendesk')
source=("sdlpop-$pkgver.tar.gz::https://github.com/NagyD/SDLPoP/archive/v$pkgver.tar.gz"
- "sdlpop.desktop"
"sdlpop.sh")
sha256sums=('aa4b254ab80b889a6db491b41c4f83467124d932cc0836e5979fa73b6c49a94d'
- '39ec3eb4cd4021424b4ee35b5cc68ca3735894369be5622f1825cf0ad2c21f6f'
'08275c83ec0f19484b90b88a7a31cca2f4503d1cba11a02f1cf97ac4fec67475')
+prepare() {
+ gendesk -n --pkgname=$pkgname --name=SDLPoP --comment="$pkgdesc" \
+ --exec=prince --categories="Application;Game;ArcadeGame"
+}
+
build() {
cd SDLPoP-$pkgver/src
make
@@ -27,4 +31,5 @@ package() {
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
+ install -Dm644 "$pkgdir"/usr/share/sdlpop/data/icon.png "$pkgdir"/usr/share/pixmaps/sdlpop.png
}
diff --git a/sdlpop.desktop b/sdlpop.desktop
deleted file mode 100644
index f3671552f4b..00000000000
--- a/sdlpop.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=SDLPoP
-Comment=An open-source port of Prince of Persia
-StartupNotify=false
-Exec=prince
-Icon=/usr/share/sdlpop/data/icon.png
-Terminal=false
-Type=Application
-Categories=Application;Game;ArcadeGame;
-