summaryrefslogtreecommitdiff
path: root/hurrycurry-standalone-files-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'hurrycurry-standalone-files-git/PKGBUILD')
-rw-r--r--hurrycurry-standalone-files-git/PKGBUILD30
1 files changed, 26 insertions, 4 deletions
diff --git a/hurrycurry-standalone-files-git/PKGBUILD b/hurrycurry-standalone-files-git/PKGBUILD
index 1b3ccb5..0e0c109 100644
--- a/hurrycurry-standalone-files-git/PKGBUILD
+++ b/hurrycurry-standalone-files-git/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: metamuffin <metamuffin@disroot.org>
pkgname=hurrycurry-standalone-files-git
-pkgver=r2226.06546f7c
+pkgver=r2236.e4a1afec
pkgrel=1
pkgdesc="A game about cooking (standalone files (git))"
arch=('any')
@@ -18,8 +18,12 @@ makedepends=(
'mingw-w64-binutils'
'lib32-rust-libs'
)
-source=("git+https://codeberg.org/hurrycurry/hurrycurry.git")
-sha256sums=('SKIP')
+source=("hurrycurry::git+https://codeberg.org/hurrycurry/hurrycurry.git"
+ "hurrycurry-windows-installer::git+https://codeberg.org/hurrycurry/windows-installer.git"
+ "hurrycurry-website::git+https://codeberg.org/hurrycurry/website.git")
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP')
_targets=(
"x86_64-unknown-linux-gnu"
@@ -69,7 +73,7 @@ build() {
export CFLAGS=
mkdir -p out
- cd "hurrycurry"
+ pushd "hurrycurry"
git reset --hard
sed -i "s/^const DISTRIBUTION := .*/const DISTRIBUTION := \"standalone\"/" client/global.gd
@@ -96,6 +100,22 @@ build() {
cargo build --release --target "$t" --bin hurrycurry-discover
cargo build --release --target "$t" --bin hurrycurry-replaytool
done
+
+ popd
+ pushd hurrycurry-windows-installer
+
+ ln -svfT ../hurrycurry main
+ ln -svfT ../hurrycurry-website website
+ make \
+ DATA=../out/data.tar.zst \
+ CLIENT_64=../out/client-x86_64-pc-windows-gnu.exe \
+ CLIENT_32=../out/client-i686-pc-windows-gnu.exe \
+ SERVER_64=../hurrycurry/target/x86_64-pc-windows-gnu/release/hurrycurry-server.exe \
+ SERVER_32=../hurrycurry/target/i686-pc-windows-gnu/release/hurrycurry-server.exe \
+ DISCOVER_64=../hurrycurry/target/x86_64-pc-windows-gnu/release/hurrycurry-discover.exe \
+ DISCOVER_32=../hurrycurry/target/i686-pc-windows-gnu/release/hurrycurry-discover.exe
+
+ popd
}
package() {
out="$pkgdir/usr/share/hurrycurry/standalone-files/nightly"
@@ -111,4 +131,6 @@ package() {
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"
done
+ install -Dvm644 "hurrycurry-windows-installer/hurrycurry-install-x86_64.exe" "$out/windows-installer-x86_64.exe"
+ install -Dvm644 "hurrycurry-windows-installer/hurrycurry-install-i686.exe" "$out/windows-installer-i686.exe"
}