diff options
Diffstat (limited to 'hurrycurry-standalone-files/PKGBUILD')
-rw-r--r-- | hurrycurry-standalone-files/PKGBUILD | 49 |
1 files changed, 34 insertions, 15 deletions
diff --git a/hurrycurry-standalone-files/PKGBUILD b/hurrycurry-standalone-files/PKGBUILD index d09dae6..d0e5ebe 100644 --- a/hurrycurry-standalone-files/PKGBUILD +++ b/hurrycurry-standalone-files/PKGBUILD @@ -1,27 +1,38 @@ # Maintainer: metamuffin <metamuffin@disroot.org> pkgname=hurrycurry-standalone-files -pkgver=2.3.2 +pkgver=2.3.3 pkgrel=1 pkgdesc="A game about cooking (standalone files)" arch=('any') url="https://codeberg.org/hurrycurry/hurrycurry" license=('AGPL3') -makedepends=('rustup' 'deno' 'graphviz' 'godot' 'esbuild' 'typst') +makedepends=( + 'rustup' + 'deno' + 'graphviz' + 'godot' + 'esbuild' + 'typst' + 'mingw-w64-gcc' + 'mingw-w64-binutils' + 'lib32-rust-libs' +) source=("hurrycurry-$pkgver.tar.gz::https://codeberg.org/hurrycurry/hurrycurry/archive/v$pkgver.tar.gz") -sha256sums=('28139ca81711a2d324182a7bf62783cd33d2d4872078f63cd68db382f3167cce') +sha256sums=('cbad7db09db129cfc79ee7464d83b29daae3ff71c4cc33432b91d317242f9ddf') -_targets=("x86_64-unknown-linux-gnu" - # "aarch64-unknown-linux-gnu" +_targets=( + "x86_64-unknown-linux-gnu" + "aarch64-unknown-linux-gnu" # "armv7-unknown-linux-gnueabi" - # "i686-unknown-linux-gnu" - # "x86_64-pc-windows-gnu" - # "i686-pc-windows-gnu" - # "aarch64-linux-android" - # "armv7-linux-androideabi" - # "i686-linux-android" - # "x86_64-linux-android" - ) + "i686-unknown-linux-gnu" + "x86_64-pc-windows-gnu" + "i686-pc-windows-gnu" + "aarch64-linux-android" + "armv7-linux-androideabi" + "i686-linux-android" + "x86_64-linux-android" +) _target_suf() { if echo "$t" | grep -q android; then @@ -35,13 +46,17 @@ prepare() { cd "hurrycurry" rustup default nightly for t in "${_targets[@]}"; do + rustup target add --toolchain "$(cat rust-toolchain)" "$t" cargo fetch --locked --target "$t" done } build() { - export GODOT_ANDROID_KEYSTORE_RELEASE_PATH="$HOME/infra/misc/hurrycurry/hurrycurry-android.keystore" # this wont work on your machine :) + export GODOT_ANDROID_KEYSTORE_RELEASE_PATH="$HOME/infra/misc/hurrycurry/hurrycurry.keystore" # this wont work on your machine :) export GODOT_ANDROID_KEYSTORE_RELEASE_USER="hurrycurry" export GODOT_ANDROID_KEYSTORE_RELEASE_PASSWORD="hurrycurry" + export CXXFLAGS= + export LDFLAGS= + export CFLAGS= mkdir -p out cd "hurrycurry" @@ -61,7 +76,9 @@ build() { done for t in "${_targets[@]}"; do - local suf + if echo "$t" | grep -q android; then echo skip "$t"; continue; fi + if echo "$t" | grep -q windows; then echo skip "$t"; continue; fi + echo build "$t" cargo build --release --target "$t" --bin hurrycurry-server cargo build --release --target "$t" --bin hurrycurry-discover cargo build --release --target "$t" --bin hurrycurry-replaytool @@ -76,6 +93,8 @@ package() { local suf suf=$(_target_suf "$t") install -Dvm644 "out/client-$t$suf" "$out/client-$t$suf" + if echo "$t" | grep -q android; then continue; fi + if echo "$t" | grep -q windows; then continue; fi install -Dvm644 "hurrycurry/target/$t/release/hurrycurry-server$suf" "$out/server-$t$suf" install -Dvm644 "hurrycurry/target/$t/release/hurrycurry-discover$suf" "$out/discover-$t$suf" install -Dvm644 "hurrycurry/target/$t/release/hurrycurry-replaytool$suf" "$out/replaytool-$t$suf" |