keypunch: build in release mode

This commit is contained in:
Duncaen 2025-03-20 00:21:43 +01:00
parent 85e34da17e
commit a4650c3d4b
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -1,7 +1,7 @@
# Template file for 'keypunch'
pkgname=keypunch
version=5.1
revision=1
revision=2
build_helper="rust"
build_style=meson
hostmakedepends="cargo rust gettext glib pkg-config blueprint-compiler
@ -16,8 +16,11 @@ checksum=98e69f91150373eea2a9ffb9c175db19ce867e62825c74ebf921923c6ae79408
post_patch() {
vsed -e 's/\(gtk_update_icon_cache: \)true/\1false/' \
-e 's/\(update_desktop_database: \)true/\1false/' \
-e 's/\(update_desktop_database: \)true/\1false/' \
-e "s/\(get_option('buildtype') != \)'release'/\1'plain'/" \
-i meson.build
vsed -e "s/\(get_option('buildtype') == \)'release'/\1'plain'/" \
-i src/meson.build
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / &%"