# Maintainer: metamuffin pkgname=hurrycurry-client-git pkgver=r2526.10bd0b8a pkgrel=1 pkgdesc="A game about cooking (client)" arch=('any') url="https://codeberg.org/hurrycurry/hurrycurry" license=('AGPL3') depends=('godot') makedepends=('godot' 'ffmpeg') conflics=('hurrycurry-client') provides=('hurrycurry-client') source=("git+https://codeberg.org/hurrycurry/hurrycurry.git" "hurrycurry-client" "hurrycurry-client.desktop") sha256sums=("SKIP" "SKIP" "SKIP") pkgver() { cd "hurrycurry" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "hurrycurry" make client git reset --hard sed -i "s/^const DISTRIBUTION := .*/const DISTRIBUTION := \"arch\"/" client/global.gd sed -i "s/^const VERSION := .*/const VERSION := \"$pkgver-$pkgrel\"/" client/global.gd mkdir -p target/release godot --headless --export-pack wasm32-unknown-unknown ../target/release/client.pck client/project.godot } package() { install -Dm755 hurrycurry-client "$pkgdir/usr/bin/hurrycurry-client" install -Dm644 hurrycurry-client.desktop "$pkgdir/usr/share/applications/hurrycurry-client.desktop" install -Dm644 hurrycurry/target/release/client.pck "$pkgdir/usr/share/hurrycurry/client.pck" install -Dm644 hurrycurry/COPYING "$pkgdir/usr/share/licenses/hurrycurry-client/COPYING" install -Dm644 hurrycurry/client/icons/main.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/hurrycurry.png" }