38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
# Template file for 'twintaillauncher'
|
|
pkgname=twintaillauncher
|
|
version=2.5.1
|
|
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=cc81b4728947b042a1fc3d9acf0e3ec70f1017a6945d0cf5a0bf92991384cad0
|
|
make_check=no # no tests at repo root; Cargo.toml is in src-tauri/
|
|
nostrip_files="reaper hkrpg_patch.dll"
|
|
|
|
post_patch() {
|
|
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
|
|
}
|