From d074948047607a45ac92cd20333a34c45b3481ca Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Fri, 18 Jul 2025 09:58:29 +0200 Subject: [PATCH] Small improvments - better description for the editor - forcing LTO for the build. This adds a few seconds to the build time, but some improvements in the runtime --- .SRCINFO | 2 +- PKGBUILD | 6 +++--- overridden_config.toml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 overridden_config.toml diff --git a/.SRCINFO b/.SRCINFO index e4d5579..a7a00d4 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = sulis-git pkgdesc = Turn based tactical RPG with several campaigns, written in Rust. pkgver = 1.0.0.20250112 - pkgrel = 1 + pkgrel = 2 url = https://www.sulisgame.com/ arch = x86_64 license = GPL3 diff --git a/PKGBUILD b/PKGBUILD index a7141b1..f0d95a5 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=sulis-git pkgver=1.0.0.20250112 -pkgrel=1 +pkgrel=2 pkgdesc='Turn based tactical RPG with several campaigns, written in Rust.' arch=('x86_64') url='https://www.sulisgame.com/' @@ -48,13 +48,13 @@ pkgver() { prepare() { gendesk -f -n --pkgname "sulis" --name "Sulis" --pkgdesc "${pkgdesc}s" --exec="/opt/sulis/sulis" --categories=Game --icon sulis --path=/opt/sulis - gendesk -f -n --pkgname "sulis-editor" --name 'Sulis Editor' --pkgdesc "${pkgdesc}s" --exec="/opt/sulis/sulis-editor" --categories=Game --icon sulis --path=/opt/sulis + gendesk -f -n --pkgname "sulis-editor" --name 'Sulis Editor' --pkgdesc "Editor for sulis" --exec="/opt/sulis/sulis-editor" --categories=Game --icon sulis --path=/opt/sulis } build() { _srcdir="$PWD" cd "sulis" - RUSTUP_TOOLCHAIN=stable cargo build --release --workspace --locked --all-features --target-dir="${_srcdir}/target" + RUSTUP_TOOLCHAIN=stable cargo build --release --workspace --locked --all-features --target-dir="${_srcdir}/target" --config ../../overridden_config.toml } package() { diff --git a/overridden_config.toml b/overridden_config.toml new file mode 100644 index 0000000..34b7ca5 --- /dev/null +++ b/overridden_config.toml @@ -0,0 +1,4 @@ +[profile.release] +lto = true +opt-level = 3 +debug = true