New package: keypunch-5.1

This commit is contained in:
Duncaen 2025-03-19 21:43:17 +01:00
parent d012311979
commit 8c474a6db8
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

25
srcpkgs/keypunch/template Normal file
View file

@ -0,0 +1,25 @@
# Template file for 'keypunch'
pkgname=keypunch
version=5.1
revision=1
build_helper="rust"
build_style=meson
hostmakedepends="cargo rust gettext glib pkg-config blueprint-compiler
gtk4-devel libadwaita-devel"
makedepends="gtk4-devel libadwaita-devel rust-std"
short_desc="Practice your typing skills"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://apps.gnome.org/Keypunch/"
distfiles="https://github.com/bragefuglseth/keypunch/archive/refs/tags/v${version}.tar.gz"
checksum=98e69f91150373eea2a9ffb9c175db19ce867e62825c74ebf921923c6ae79408
post_patch() {
vsed -e 's/\(gtk_update_icon_cache: \)true/\1false/' \
-e 's/\(update_desktop_database: \)true/\1false/' \
-i meson.build
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / &%"
fi
}