void-packages/srcpkgs/gnome-authenticator/template

27 lines
1.0 KiB
Bash

# Template file for 'gnome-authenticator'
pkgname=gnome-authenticator
version=4.3.1
revision=2
build_style=meson
build_helper="rust"
hostmakedepends="pkg-config gettext glib-devel itstool cargo desktop-file-utils
gtk-update-icon-cache clang"
makedepends="gtk4-devel libadwaita-devel libglib-devel libzbar-devel openssl-devel
pipewire-devel rust-std"
depends="gnome-keyring"
short_desc="Two-factor authentication code generator for GNOME"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/Authenticator"
distfiles="https://gitlab.gnome.org/World/Authenticator/-/archive/${version}/Authenticator-${version}.tar.gz"
checksum=fe16666d499ec543032401e4e69e29b442c5aaba882dd067b304585f43b78df2
make_check=ci-skip # Test timeout while compiling tests
export BINDGEN_EXTRA_CLANG_ARGS="${BINDGEN_EXTRA_CLANG_ARGS} -DPW_ENABLE_DEPRECATED"
post_patch() {
[ -z "$CROSS_BUILD" ] && return 0
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
}