38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
# Template file for 'twintaillauncher'
|
|
pkgname=twintaillauncher
|
|
version=2.5.3
|
|
revision=1
|
|
archs="x86_64 aarch64"
|
|
build_style=cargo
|
|
hostmakedepends="cargo nodejs pnpm pkg-config protobuf"
|
|
makedepends="libwebkit2gtk41-devel libsoup3-devel libgit2-1.9-devel libayatana-appindicator-devel"
|
|
depends="libayatana-appindicator"
|
|
short_desc="Multi-platform launcher for anime games"
|
|
maintainer="Juan Rojas <juandmcr@protonmail.com>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://github.com/TwintailTeam/TwintailLauncher"
|
|
distfiles="https://github.com/TwintailTeam/TwintailLauncher/archive/refs/tags/ttl-v${version}.tar.gz"
|
|
checksum=1232c436a6b505ca6b9a0b00a33d7e5e3d7c1ed560baac5b3e3a7cb30c168b46
|
|
make_check=no # no tests at repo root; Cargo.toml is in src-tauri/
|
|
nostrip_files="reaper hkrpg_patch.dll"
|
|
|
|
pre_build() {
|
|
pnpm install --frozen-lockfile
|
|
}
|
|
|
|
do_build() {
|
|
pnpm exec tauri build --no-bundle
|
|
}
|
|
|
|
do_install() {
|
|
if [ -n "${CARGO_BUILD_TARGET}" ]; then
|
|
vbin "src-tauri/target/${CARGO_BUILD_TARGET}/release/twintaillauncher"
|
|
else
|
|
vbin src-tauri/target/release/twintaillauncher
|
|
fi
|
|
vinstall public/launcher-icon.png 644 usr/share/icons/hicolor/256x256/apps twintaillauncher.png
|
|
vinstall twintaillauncher.desktop 644 usr/share/applications
|
|
vmkdir usr/lib/twintaillauncher
|
|
vcopy src-tauri/resources usr/lib/twintaillauncher
|
|
}
|