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.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for yarntown.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: MCMic (AUR) <come@chilliet.eu>

pkgname=yarntown
_pkgname=Yarntown
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')
makedepends=('zip')
source=("https://gitlab.com/maxmraz/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz")
b2sums=('4a1a24de8d82efdf09c750aee11268879d3f0d3e722e4c105523737e9832c61908ed428ce293f337976d269803432d6afa87ac5a005980822132c8ae95708f82')

build() {
  cd "${srcdir}/$pkgname-v$pkgver/data"
  rm -f data.solarus 
  zip -r data.solarus *

  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
Comment=$pkgdesc
Exec=$pkgname
Icon=$pkgname
Terminal=false
StartupNotify=false
Categories=Game;ActionGame;"
}

package() {
  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"
}