mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
New package: keypunch-5.1
This commit is contained in:
parent
d012311979
commit
8c474a6db8
1 changed files with 25 additions and 0 deletions
25
srcpkgs/keypunch/template
Normal file
25
srcpkgs/keypunch/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue