makedeb


yarntown 1.0.6-0


A Zeldalike tribute to Bloodborne. Explore the streets of a cursed, gothic town, hunting beasts and uncovering twisted bosses.

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

Commit:


Hash: c0c29aaafbef96980c1cc62a63193ddccecfc54f

Message: 1.0.6

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 8e2ffed..0d40aac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,16 +2,13 @@ generated-by = makedeb
 pkgname = yarntown
 pkgbase = yarntown
 pkgdesc = A Zeldalike tribute to Bloodborne. Explore the streets of a cursed, gothic town, hunting beasts and uncovering twisted bosses.
-pkgrel = 1
-pkgver = 1.0.5
+pkgrel = 0
+pkgver = 1.0.6
 url = https://maxatrillionator.itch.io/yarntown
 arch = all
 depends = solarus>=1.6.0
 license = custom
-noextract = yarntown.solarus
-source = https://github.com/MaxMraz/yarntown/releases/download/v1.0.5/yarntown.solarus
-source = https://github.com/MaxMraz/yarntown/raw/master/credits.txt
-source = https://github.com/MaxMraz/yarntown/raw/master/readme.md
-b2sums = 914b29f34b394f1816e70d1077091f9a96e7ed1189f9b1ab0850813d329791ef5201eae3ac2bf15dcdba083d01d2029cec4e25f617e7df64716ee7602c989850
-b2sums = 18d8d916157dfdeafe5e0ff88ec782916d6cea617fe5963107ef1518f353ad29acb4dda54e4a31af9098868e6c958f38d0b874f5ff4dcb90c02ccd10189048e8
-b2sums = a194d90cb90abfb66bc28146f55980602738ef63bc437f0d8f06ebbd44ce275385c9c9b7b36a014ab463ceb2506393bad6f4dbd45def632758a18f330c43afb1
+makedepends = zip
+source = https://gitlab.com/maxmraz/yarntown/-/archive/v1.0.6/yarntown-v1.0.6.tar.gz
+b2sums = 4a1a24de8d82efdf09c750aee11268879d3f0d3e722e4c105523737e9832c61908ed428ce293f337976d269803432d6afa87ac5a005980822132c8ae95708f82
+makedepends = zip
diff --git a/.gitignore b/.gitignore
index 35b5c60..582f46d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,4 @@
 error.txt
 src/
 pkg/
-readme.md
-credits.txt
 yarntown*
diff --git a/PKGBUILD b/PKGBUILD
index a24600c..5e98c72 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,26 +3,26 @@
 
 pkgname=yarntown
 _pkgname=Yarntown
-pkgver=1.0.5
-pkgrel=1
+pkgver=1.0.6
+pkgrel=0
 pkgdesc="A Zeldalike tribute to Bloodborne. Explore the streets of a cursed, gothic town, hunting beasts and uncovering twisted bosses."
 arch=('all')
 url="https://maxatrillionator.itch.io/yarntown"
 license=('custom')
 depends=('solarus>=1.6.0')
-source=("https://github.com/MaxMraz/${pkgname}/releases/download/v${pkgver}/${pkgname}.solarus"
-        "https://github.com/MaxMraz/${pkgname}/raw/master/credits.txt"
-        "https://github.com/MaxMraz/${pkgname}/raw/master/readme.md")
-noextract=("${pkgname}.solarus")
-b2sums=('914b29f34b394f1816e70d1077091f9a96e7ed1189f9b1ab0850813d329791ef5201eae3ac2bf15dcdba083d01d2029cec4e25f617e7df64716ee7602c989850'
-        '18d8d916157dfdeafe5e0ff88ec782916d6cea617fe5963107ef1518f353ad29acb4dda54e4a31af9098868e6c958f38d0b874f5ff4dcb90c02ccd10189048e8'
-        'a194d90cb90abfb66bc28146f55980602738ef63bc437f0d8f06ebbd44ce275385c9c9b7b36a014ab463ceb2506393bad6f4dbd45def632758a18f330c43afb1')
+makedepends=('zip')
+source=("https://gitlab.com/maxmraz/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
+b2sums=('4a1a24de8d82efdf09c750aee11268879d3f0d3e722e4c105523737e9832c61908ed428ce293f337976d269803432d6afa87ac5a005980822132c8ae95708f82')
 
 build() {
-  cd "${srcdir}"
-  echo -e "#!/bin/sh\nsolarus-run /usr/share/solarus/$pkgname/$pkgname.solarus $*" > $pkgname
+  cd "${srcdir}/$pkgname-v$pkgver/data"
+  rm -f data.solarus 
+  zip -r data.solarus *
 
-_DESKTOPFILE="[Desktop Entry]
+  export _WRAPPER="#!/bin/sh
+exec solarus-run /usr/share/games/solarus/$pkgname/data.solarus  \"\$@\""
+
+export _DESKTOPFILE="[Desktop Entry]
 Version=1.0
 Type=Application
 Name=$_pkgname
@@ -32,16 +32,21 @@ Icon=$pkgname
 Terminal=false
 StartupNotify=false
 Categories=Game;ActionGame;"
-  echo "$_DESKTOPFILE" > $pkgname.desktop
 }
 
 package() {
-  cd "${srcdir}"
-  install -Dm0644 $pkgname.solarus "$pkgdir/usr/share/solarus/$pkgname/$pkgname.solarus"
-  install -Dm0755 $pkgname "$pkgdir/usr/bin/$pkgname"
-  install -Dm0644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
-  install -m0644 -d "$pkgdir/usr/share/pixmaps"
-  unzip -pjqq $pkgname.solarus logos/icon_128.png > "$pkgdir/usr/share/pixmaps/$pkgname.png"
+  cd "${srcdir}/$pkgname-v$pkgver"
+
+  install -Dm0644 data/data.solarus "$pkgdir/usr/share/games/solarus/$pkgname/data.solarus"
+
+  install -m0644 -d "$pkgdir/usr/games"
+  echo "$_WRAPPER" > "$pkgdir/usr/games/$pkgname"
+  chmod 755 "$pkgdir/usr/games/$pkgname"
+
+  install -m0644 -d "$pkgdir/usr/share/applications/"
+  echo "$_DESKTOPFILE" > "$pkgdir/usr/share/applications/$pkgname.desktop"
+  install -Dm0644 data/logos/icon_128.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
+
   install -Dm0644 credits.txt "$pkgdir/usr/share/doc/$pkgname/credits"
   install -Dm0644 readme.md "$pkgdir/usr/share/doc/$pkgname/readme"
   sed -n "/## License/,/## Controls/p" readme.md | head -n -2 > "$pkgdir/usr/share/doc/$pkgname/license"