28 lines
1.0 KiB
Bash
28 lines
1.0 KiB
Bash
# Template file for 'glycin-loaders'
|
|
pkgname=glycin-loaders
|
|
version=1.0.1
|
|
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"
|
|
checksum=d0f022462ff555856e85ea940474470bb36b37c9ffcbcba63a03fe5e954370cf
|
|
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
|
|
}
|