From 5cd90acefca5e6cc0fe54e81a581c967e65ccd7b Mon Sep 17 00:00:00 2001 From: ouni666 Date: Mon, 6 Oct 2025 19:00:31 +0800 Subject: [PATCH] 0ad: add chinese mod --- app-games/0ad/autobuild/build | 7 +++++-- app-games/0ad/spec | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app-games/0ad/autobuild/build b/app-games/0ad/autobuild/build index 843ddafb8eb4..d3e418a35398 100644 --- a/app-games/0ad/autobuild/build +++ b/app-games/0ad/autobuild/build @@ -26,7 +26,7 @@ ) abinfo "Creating installation directories ..." -install -dv "$PKGDIR"/usr/{bin,lib/0ad,share/0ad/data} +install -dv "$PKGDIR"/usr/{bin,lib/0ad,share/0ad/data/mods/public} abinfo "Installing binaries ..." install -Dvm755 "$SRCDIR"/binaries/system/pyrogenesis \ @@ -50,6 +50,9 @@ install -Dvm644 "$SRCDIR"/build/resources/0ad.appdata.xml \ abinfo "Installing game data ..." tar xvf "$SRCDIR"/../data.tar.xz -install -dv "$PKGDIR"/usr/share/0ad/ cp -rv "$SRCDIR"/0ad-$PKGVER/binaries/data \ "$PKGDIR"/usr/share/0ad/ + +abinfo "Installing zh-lang mod ..." +cp -v "$SRCDIR"/../zh-lang.zip \ + "$PKGDIR"/usr/share/0ad/data/mods/public/ diff --git a/app-games/0ad/spec b/app-games/0ad/spec index d8b3518b633e..3bf849b7becc 100644 --- a/app-games/0ad/spec +++ b/app-games/0ad/spec @@ -1,6 +1,9 @@ VER=0.27.1 +REL=1 SRCS="tbl::https://sourceforge.net/projects/zero-ad/files/releases/0ad-${VER}-unix-build.tar.xz \ - file::rename=data.tar.xz::https://sourceforge.net/projects/zero-ad/files/releases/0ad-${VER}-unix-data.tar.xz" + file::rename=data.tar.xz::https://sourceforge.net/projects/zero-ad/files/releases/0ad-${VER}-unix-data.tar.xz \ + file::rename=zh-lang.zip::https://releases.wildfiregames.com/locales/zh-lang-0.27.0.pyromod" CHKSUMS="sha256::a0a5355eeb5968d24f283770736150d974dafecba07754d4662707dc17016bfb \ - sha256::837e2d6ddf138b025fc02017245d7581a4bb84fd94b42c0e605d321b7017a998" + sha256::837e2d6ddf138b025fc02017245d7581a4bb84fd94b42c0e605d321b7017a998 \ + sha256::a4c03d34857949c04574108ccedc672c4d45401e12d9b231731bdecedb0748aa" CHKUPDATE="anitya::id=5830"