summaryrefslogtreecommitdiff
path: root/hurrycurry-client-web/PKGBUILD
blob: c1fedff49f99a81062fc6e5a80bc165b1508cd0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: metamuffin <metamuffin@disroot.org>

pkgname=hurrycurry-client-web
pkgver=2.3.4
pkgrel=1
pkgdesc="A game about cooking (web client)"
arch=('any')
url="https://codeberg.org/hurrycurry/hurrycurry"
license=('AGPL3')
makedepends=('godot' 'rustup')
source=("hurrycurry-$pkgver.tar.gz::https://codeberg.org/hurrycurry/hurrycurry/archive/v$pkgver.tar.gz")
sha256sums=('060f5851038c3af2eeff20289205bf52f6ac11545d3ae3aea289c2ad8d46e8dd')

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.*
}