void-packages/srcpkgs/glycin-loaders/template

28 lines
1.0 KiB
Bash
Raw Permalink Normal View History

2024-01-06 23:32:28 +01:00
# Template file for 'glycin-loaders'
pkgname=glycin-loaders
2024-03-31 22:59:15 +02:00
version=1.0.1
2024-01-06 23:32:28 +01:00
revision=1
build_style=meson
build_helper=rust
configure_args="-Dtest_skip_install=true"
hostmakedepends="cargo clang17 gettext pkg-config"
makedepends="gtk4-devel libheif-devel libjxl-devel libseccomp-devel rust-std"
short_desc="Sandboxed and extendable image decoding"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="MPL-2.0"
homepage="https://gitlab.gnome.org/sophie-h/glycin"
changelog="https://gitlab.gnome.org/sophie-h/glycin/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/glycin-loaders/${version%.*}/${pkgname}-${version}.tar.xz"
2024-03-31 22:59:15 +02:00
checksum=d0f022462ff555856e85ea940474470bb36b37c9ffcbcba63a03fe5e954370cf
2024-01-06 23:32:28 +01:00
make_check=no # needs to be installed to run tests
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i loaders/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / &%"
fi
# loaders/meson.build tries to call git to get hash for debug builds.
# Disable as it is useless for tarball builds.
ln -sf /bin/false ${XBPS_WRAPPERDIR}/git
}