# Maintainer: metamuffin pkgname=hurrycurry-client-web-git pkgver=r2195.8fc54434 pkgrel=1 pkgdesc="A game about cooking (web client)" arch=('any') url="https://codeberg.org/hurrycurry/hurrycurry" license=('AGPL3') conflics=('hurrycurry-client-web') provides=('hurrycurry-client-web') makedepends=('godot' 'rustup') source=("git+https://codeberg.org/hurrycurry/hurrycurry.git") sha256sums=("SKIP") pkgver() { cd "hurrycurry" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "hurrycurry" make client mkdir -p target/release godot --headless --export-release wasm32-unknown-unknown ../target/release/client.html client/project.godot } package() { install -Dm644 hurrycurry/COPYING "$pkgdir/usr/share/licenses/hurrycurry-client-web/COPYING" install -Dm664 -t "$pkgdir/usr/share/hurrycurry/client-web" hurrycurry/target/release/client.* }