makedeb
Roguelike-like Zelda game for the Solarus engine
Click here to go back to the commit logs for tunics.
Hash: d25c09f010b42334750947eca90cdf4e2f1f817c
Message: cosmetics
diff --git a/.SRCINFO b/.SRCINFO
index 7152928..256a762 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
pkgname = tunics
pkgbase = tunics
pkgdesc = Roguelike-like Zelda game for the Solarus engine
-pkgrel = 1
+pkgrel = 2
pkgver = 0.3+ci
url = https://solarus-games.org/en/games/tunics
arch = all
diff --git a/PKGBUILD b/PKGBUILD
index bd9b37f..a329931 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=tunics
_pkgname=Tunics
pkgver="0.3+ci"
-pkgrel=1
+pkgrel=2
pkgdesc="Roguelike-like Zelda game for the Solarus engine"
arch=('all')
url="https://solarus-games.org/en/games/tunics"
@@ -19,39 +19,40 @@ build() {
cd patched-$pkgname-$pkgver
cmake -DCMAKE_INSTALL_PREFIX='/usr' .
make
+
+export _DESKTOPFILE="[Desktop Entry]
+Version=1.0
+Type=Application
+Name=$_pkgname
+Comment=$pkgdesc
+Exec=$pkgname
+Icon=$pkgname
+Terminal=false
+StartupNotify=false
+Categories=Game;ActionGame;"
}
package() {
cd patched-$pkgname-$pkgver
-
+ # /usr/games
install -m755 -d "$pkgdir/usr/games"
- echo -e '#!'"/bin/sh\nexec solarus-run /usr/share/games/solarus/$pkgname/data.solarus \"\$@\"" > "$pkgdir/usr/games/$pkgname"
+ echo "#!/bin/sh
+exec solarus-run /usr/share/games/solarus/$pkgname/data.solarus \"\$@\"" > "$pkgdir/usr/games/$pkgname"
chmod 755 "$pkgdir/usr/games/$pkgname"
-
+ # /usr/share/games
install -m755 -d "$pkgdir/usr/share/games/solarus/$pkgname"
install -Dm644 data.solarus "$pkgdir/usr/share/games/solarus/$pkgname/"
-
+ # doc
install -m755 -d "$pkgdir/usr/share/doc/$pkgname"
install -Dm644 license.txt "$pkgdir/usr/share/doc/$pkgname/license"
install -Dm644 CREDITS.txt "$pkgdir/usr/share/doc/$pkgname/credits"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/readme"
install -Dm644 ChangeLog "$pkgdir/usr/share/doc/$pkgname/changelog"
gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
-
-_DESKTOPFILE="[Desktop Entry]
-Version=1.0
-Type=Application
-Name=$_pkgname
-Comment=$pkgdesc
-Exec=$pkgname
-Icon=$pkgname
-Terminal=false
-StartupNotify=false
-Categories=Game;ActionGame;"
-
+ # desktop file
install -m0755 -d "$pkgdir/usr/share/applications"
echo "$_DESKTOPFILE" > "$pkgdir/usr/share/applications/$pkgname.desktop"
-
+ # pixmap
install -m0755 -d "$pkgdir/usr/share/pixmaps"
install -Dm644 ../${pkgname}.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
}