summaryrefslogtreecommitdiff
path: root/hurrycurry-client-web/PKGBUILD
blob: 22e85648dce565eb82e8e34a5f65fccebdaad2d6 (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.1.1
pkgrel=1
pkgdesc="A game about cooking (web client)"
arch=('any')
url="https://codeberg.org/hurrycurry/hurrycurry"
license=('AGPL3')
makedepends=('godot')
source=("hurrycurry-$pkgver.tar.gz::https://codeberg.org/hurrycurry/hurrycurry/archive/v$pkgver.tar.gz")
sha256sums=('f165fd6ddd2b0ce22cdb010049a8a39dd74de4943dbf0e994e6e0ca02b6b2a54')

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