d761a150d7
Build and Deploy / build-and-push (push) Successful in 4m40s
Updates all in-tree references: - Android package: com.solitairequest.app → com.ferrousapp.solitaire - APK name: solitaire-quest → ferrous-solitaire - Data dir: solitaire_quest → ferrous_solitaire (across all 6 data modules + engine) - Keyring service: solitaire_quest_server → ferrous_solitaire_server - Android Keystore key: solitaire_quest_token_key → ferrous_solitaire_token_key - Gitea repo: Rusty_Solitare → Ferrous-Solitaire (also fixes "Solitare" typo) - Renamed pkg/solitaire-quest* → pkg/ferrous-solitaire* - Updated ArgoCD, docker-compose, CI workflow, build script, all docs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
49 lines
1.2 KiB
Bash
49 lines
1.2 KiB
Bash
# Maintainer: funman300 <funman300@gmail.com>
|
|
|
|
pkgname=ferrous-solitaire
|
|
pkgver=0.1.0
|
|
pkgrel=1
|
|
pkgdesc='Cross-platform Klondike Solitaire with progression, achievements, and optional sync'
|
|
url='https://github.com/funman300/ferrous-solitaire'
|
|
license=('MIT')
|
|
arch=('x86_64')
|
|
makedepends=('cargo' 'rust')
|
|
depends=(
|
|
'gcc-libs'
|
|
'glibc'
|
|
'alsa-lib'
|
|
'libxkbcommon'
|
|
'systemd-libs' # libudev.so — required by Bevy input
|
|
)
|
|
|
|
# Build from the local workspace (two levels above this PKGBUILD).
|
|
_srcdir="$startdir/../.."
|
|
source=()
|
|
b2sums=()
|
|
|
|
prepare() {
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
cd "$_srcdir"
|
|
cargo fetch --locked --target "$(rustc -Vv | grep host | cut -d' ' -f2)"
|
|
}
|
|
|
|
build() {
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
export CARGO_TARGET_DIR=target
|
|
cd "$_srcdir"
|
|
cargo build --frozen --release -p solitaire_app
|
|
}
|
|
|
|
check() {
|
|
export RUSTUP_TOOLCHAIN=stable
|
|
cd "$_srcdir"
|
|
# Only test non-Bevy crates — Bevy integration tests require a GPU/display.
|
|
cargo test --frozen -p solitaire_core -p solitaire_sync
|
|
}
|
|
|
|
package() {
|
|
cd "$_srcdir"
|
|
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/solitaire_app"
|
|
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|