Add working Twintail Launcher template
This commit is contained in:
1 parent
d3ae6c7f30
commit
8d4408d96f
1 file changed
+37
@@ -0,0 +1,37 @@
|
||||
# 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
|
||||
}
|
||||
Reference in new issue
Block a user