makedeb


zsxd 1.12.2-1


Zelda: Mystery of Solarus XD - an open-source parodic fangame

Click here to go back to the commit logs for zsxd.

Commit:


Hash: 648e926efdd806e78253ede2d962eaa8a23d2bb7

Message: minor games folders

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 0b2e929..b3ab7c9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = zsxd
 pkgbase = zsxd
 pkgdesc = Zelda: Mystery of Solarus XD - an open-source parodic fangame
-pkgrel = 0
+pkgrel = 1
 pkgver = 1.12.2
 url = https://www.solarus-games.org/en/games/the-legend-of-zelda-mystery-of-solarus-xd
 arch = all
diff --git a/PKGBUILD b/PKGBUILD
index 7b069ef..68b0197 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@
 
 pkgname=zsxd
 pkgver=1.12.2
-pkgrel=0
+pkgrel=1
 pkgdesc="Zelda: Mystery of Solarus XD - an open-source parodic fangame"
 arch=('all')
 url="https://www.solarus-games.org/en/games/the-legend-of-zelda-mystery-of-solarus-xd"
@@ -22,13 +22,24 @@ build() {
   cd "${srcdir}/${pkgname}-v${pkgver}"
   cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release .
   make
+
+export _WRAPPER="#!/bin/sh
+exec solarus-run /usr/share/games/solarus/$pkgname/data.solarus \"\$@\""
 }
 
 package() {
   cd "${srcdir}/${pkgname}-v${pkgver}"
-  make DESTDIR="${pkgdir}/" PREFIX=/usr install
-  install -Dm644 license.txt "${pkgdir}/usr/share/doc/${pkgname}/license"
+  # doc
   install -Dm644 changelog.txt "${pkgdir}/usr/share/doc/${pkgname}/changelog"
   install -Dm644 readme.md "${pkgdir}/usr/share/doc/${pkgname}/readme"
+  install -Dm644 license.txt "${pkgdir}/usr/share/doc/${pkgname}/license"
   gzip "${pkgdir}/usr/share/doc/${pkgname}/changelog"
+  # install
+  make DESTDIR="${pkgdir}/" PREFIX="/usr" install
+  # adjustments
+  install -d "${pkgdir}/usr/share/games"
+  mv -T  "${pkgdir}/usr/share/solarus" "${pkgdir}/usr/share/games/solarus"
+  mv -T "${pkgdir}/usr/bin" "${pkgdir}/usr/games"
+  echo "$_WRAPPER" > "$pkgdir/usr/games/$pkgname"
+  chmod 755 "$pkgdir/usr/games/$pkgname"
 }