summaryrefslogtreecommitdiff
path: root/hurrycurry-client-web-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'hurrycurry-client-web-git/PKGBUILD')
-rw-r--r--hurrycurry-client-web-git/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/hurrycurry-client-web-git/PKGBUILD b/hurrycurry-client-web-git/PKGBUILD
new file mode 100644
index 0000000..b8fa3b5
--- /dev/null
+++ b/hurrycurry-client-web-git/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: metamuffin <metamuffin@disroot.org>
+
+pkgname=hurrycurry-client-web-git
+pkgver=r1782.4b2e56f
+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')
+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.*
+}