From 8d4408d96f96ad169154470f2f2dce8f42bf4b8f Mon Sep 17 00:00:00 2001 From: juandmcr Date: Sat, 3 Oct 2026 04:53:10 +0200 Subject: [PATCH] Add working Twintail Launcher template --- srcpkgs/twintaillauncher/template | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 srcpkgs/twintaillauncher/template diff --git a/srcpkgs/twintaillauncher/template b/srcpkgs/twintaillauncher/template new file mode 100644 index 0000000..c938120 --- /dev/null +++ b/srcpkgs/twintaillauncher/template @@ -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 " +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 +}