makedeb
The Legend of Zelda: Mystery of Solarus DX - A free 2D Zelda fangame
Click here to go back to the commit logs for zsdx.
Hash: 46356fe35bc8ae6cb64b978de946b2fa38976ec8
Message: minor games folders
diff --git a/.SRCINFO b/.SRCINFO
index ce9d6a4..b6ea0b1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,13 +2,15 @@ generated-by = makedeb
pkgname = zsdx
pkgbase = zsdx
pkgdesc = The Legend of Zelda: Mystery of Solarus DX - A free 2D Zelda fangame
-pkgrel = 1
+pkgrel = 2
pkgver = 1.12.3
url = https://www.solarus-games.org/en/games/the-legend-of-zelda-mystery-of-solarus-dx
arch = all
depends = solarus>=1.6.0
license = custom
makedepends = cmake
+makedepends = zip
source = https://gitlab.com/solarus-games/zsdx/-/archive/v1.12.3/zsdx-v1.12.3.tar.gz
b2sums = bc4d72f96b4a77daf72caea12526512565598700c704094b704d7b4713083bc4559e2019e426504f3631b6936b5b87c27ce37f6827a2700ca0a4e4448447ff02
makedepends = cmake
+makedepends = zip
diff --git a/PKGBUILD b/PKGBUILD
index ed21d67..2e30e0b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,13 +6,13 @@
pkgname=zsdx
pkgver=1.12.3
-pkgrel=1
+pkgrel=2
pkgdesc="The Legend of Zelda: Mystery of Solarus DX - A free 2D Zelda fangame"
arch=('all')
url="https://www.solarus-games.org/en/games/the-legend-of-zelda-mystery-of-solarus-dx"
license=('custom')
depends=('solarus>=1.6.0')
-makedepends=('cmake')
+makedepends=('cmake' 'zip')
source=("https://gitlab.com/solarus-games/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
b2sums=('bc4d72f96b4a77daf72caea12526512565598700c704094b704d7b4713083bc4559e2019e426504f3631b6936b5b87c27ce37f6827a2700ca0a4e4448447ff02')
@@ -20,13 +20,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 $srcdir/$pkgname/changelog.md "${pkgdir}/usr/share/doc/${pkgname}/changelog"
- install -Dm644 $srcdir/$pkgname/readme.md "${pkgdir}/usr/share/doc/${pkgname}/readme"
- install -Dm644 $srcdir/$pkgname/license.txt "${pkgdir}/usr/share/doc/${pkgname}/license"
+ # doc
+ install -Dm644 changelog.md "${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"
}