makedeb
Roguelike-like Zelda game for the Solarus engine
Click here to go back to the commit logs for tunics.
Hash: 7e531e22454c6bab2c666a92f3d9a57df6484ce9
Message: now it works
diff --git a/.SRCINFO b/.SRCINFO
index a9472bf..7152928 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 = 0
+pkgrel = 1
pkgver = 0.3+ci
url = https://solarus-games.org/en/games/tunics
arch = all
@@ -10,16 +10,7 @@ depends = solarus>=1.6.0
license = GPL3
license = MIT
license = custom
-noextract = tunics.solarus
-source = tunics.solarus::https://gitlab.com/syllan-games/patched-tunics/-/jobs/artifacts/0.3+ci/raw/tunics-0.3+ci.solarus?job=quest-package
-source = https://gitlab.com/syllan-games/patched-tunics/-/raw/0.3+ci/CREDITS.txt
-source = https://gitlab.com/syllan-games/patched-tunics/-/raw/0.3+ci/license.txt
-source = https://gitlab.com/syllan-games/patched-tunics/-/raw/0.3+ci/README.md
-source = https://gitlab.com/syllan-games/patched-tunics/-/raw/0.3+ci/ChangeLog
-source = https://solarus-games.org/data/en/entities/game/tunics/icons/icon_64x64.png
-b2sums = fcc8746ac3348ebe814f195df6e92216a524705ce9b36bf5dc4290d1945ed16548789b287a79e4a93b820f1bdc07b2191c7efa78b94c969278d02b8f81ef2b11
-b2sums = 8b446531db40e3f01645d3c59e0096e1520583a2c57735a8b92fdf02f9d47bcb3ddafaa14dde0f004654251a36faf6975e86adb06f9d70817f746194cf443d29
-b2sums = 6ecf73a29e8e27f8c8b2fac438e8c3d5e1eb76eba181e0338d664a45799a9f62ccfb6d6713e5ca6c6481502efb1b2a89075a061e2f8e7f4915354e5308989f32
-b2sums = dabcec52cba56039b1407372a7bb0ba6db11c0e224a9c483dae702fb9319617b897a6c985d955b84caef0bdd58777611b94cb37bd207939719089b0433f053f7
-b2sums = da55ccefd0fed71138fc41ca5c26790e64c9b5867df8a62bf53e68fe44b90dd4f327324bd087de5dfc33312b29b1db6b64d9eba2cf6145b590efdbb50e5326fe
+source = https://gitlab.com/syllan-games/patched-tunics/-/archive/0.3+ci/patched-tunics-0.3+ci.tar.gz
+source = tunics.png::https://solarus-games.org/data/en/entities/game/tunics/icons/icon_64x64.png
+b2sums = 71787dad810c69d6780a333506baebc981840a25ad04f2a19ba96ed73eb37f33210aa3b2acb7c650ec7ac1e0c5463c58a6ae678bd205bdf5723dbbddd0b74d44
b2sums = 3be99ce7d270c5efecc93e13feb58779d86cdf776f86faacd2de285196170eeff8eb28e3ff5be34bea2a02b7610306f42dedc40c52e85b7c687564b47da7f75a
diff --git a/.gitignore b/.gitignore
index 789d122..9a24de7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,8 +2,4 @@ error.txt
src/
pkg/
tunics*
-ChangeLog
-CREDITS.txt
-license.txt
-README.md
-icon_64x64.png
+patched-tunics*
diff --git a/PKGBUILD b/PKGBUILD
index d0bda6c..bd9b37f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,33 +4,34 @@
pkgname=tunics
_pkgname=Tunics
pkgver="0.3+ci"
-pkgrel=0
+pkgrel=1
pkgdesc="Roguelike-like Zelda game for the Solarus engine"
arch=('all')
url="https://solarus-games.org/en/games/tunics"
license=('GPL3' 'MIT' 'custom')
depends=('solarus>=1.6.0')
-source=("${pkgname}.solarus::https://gitlab.com/syllan-games/patched-$pkgname/-/jobs/artifacts/0.3+ci/raw/$pkgname-$pkgver.solarus?job=quest-package"
-"https://gitlab.com/syllan-games/patched-$pkgname/-/raw/0.3+ci/CREDITS.txt"
-"https://gitlab.com/syllan-games/patched-$pkgname/-/raw/0.3+ci/license.txt"
-"https://gitlab.com/syllan-games/patched-$pkgname/-/raw/0.3+ci/README.md"
-"https://gitlab.com/syllan-games/patched-$pkgname/-/raw/0.3+ci/ChangeLog"
-"https://solarus-games.org/data/en/entities/game/tunics/icons/icon_64x64.png")
-noextract=("${pkgname}.solarus")
-b2sums=('fcc8746ac3348ebe814f195df6e92216a524705ce9b36bf5dc4290d1945ed16548789b287a79e4a93b820f1bdc07b2191c7efa78b94c969278d02b8f81ef2b11'
- '8b446531db40e3f01645d3c59e0096e1520583a2c57735a8b92fdf02f9d47bcb3ddafaa14dde0f004654251a36faf6975e86adb06f9d70817f746194cf443d29'
- '6ecf73a29e8e27f8c8b2fac438e8c3d5e1eb76eba181e0338d664a45799a9f62ccfb6d6713e5ca6c6481502efb1b2a89075a061e2f8e7f4915354e5308989f32'
- 'dabcec52cba56039b1407372a7bb0ba6db11c0e224a9c483dae702fb9319617b897a6c985d955b84caef0bdd58777611b94cb37bd207939719089b0433f053f7'
- 'da55ccefd0fed71138fc41ca5c26790e64c9b5867df8a62bf53e68fe44b90dd4f327324bd087de5dfc33312b29b1db6b64d9eba2cf6145b590efdbb50e5326fe'
+source=("https://gitlab.com/syllan-games/patched-tunics/-/archive/$pkgver/patched-tunics-$pkgver.tar.gz"
+ "${pkgname}.png::https://solarus-games.org/data/en/entities/game/tunics/icons/icon_64x64.png")
+b2sums=('71787dad810c69d6780a333506baebc981840a25ad04f2a19ba96ed73eb37f33210aa3b2acb7c650ec7ac1e0c5463c58a6ae678bd205bdf5723dbbddd0b74d44'
'3be99ce7d270c5efecc93e13feb58779d86cdf776f86faacd2de285196170eeff8eb28e3ff5be34bea2a02b7610306f42dedc40c52e85b7c687564b47da7f75a')
+build() {
+ cd patched-$pkgname-$pkgver
+ cmake -DCMAKE_INSTALL_PREFIX='/usr' .
+ make
+}
+
package() {
+ cd patched-$pkgname-$pkgver
+
+ install -m755 -d "$pkgdir/usr/games"
+ echo -e '#!'"/bin/sh\nexec solarus-run /usr/share/games/solarus/$pkgname/data.solarus \"\$@\"" > "$pkgdir/usr/games/$pkgname"
+ chmod 755 "$pkgdir/usr/games/$pkgname"
- install -m644 -d "$pkgdir/usr/bin"
- echo -e "#!/bin/sh\nsolarus-run /usr/share/solarus/$pkgname/$pkgname.solarus $*" > "$pkgdir/usr/bin/$pkgname"
- chmod 755 "$pkgdir/usr/bin/$pkgname"
+ install -m755 -d "$pkgdir/usr/share/games/solarus/$pkgname"
+ install -Dm644 data.solarus "$pkgdir/usr/share/games/solarus/$pkgname/"
- install -m644 -d "$pkgdir/usr/share/doc/$pkgname"
+ 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"
@@ -48,9 +49,9 @@ Terminal=false
StartupNotify=false
Categories=Game;ActionGame;"
- install -m0644 -d "$pkgdir/usr/share/applications"
+ install -m0755 -d "$pkgdir/usr/share/applications"
echo "$_DESKTOPFILE" > "$pkgdir/usr/share/applications/$pkgname.desktop"
- install -m0644 -d "$pkgdir/usr/share/pixmaps"
- install -Dm644 icon_64x64.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ install -m0755 -d "$pkgdir/usr/share/pixmaps"
+ install -Dm644 ../${pkgname}.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
}