Skip to content

Instantly share code, notes, and snippets.

@oreo639
Last active March 19, 2024 07:13
Show Gist options
  • Save oreo639/1411d98cb8714de906de66e20daaf3dd to your computer and use it in GitHub Desktop.
Save oreo639/1411d98cb8714de906de66e20daaf3dd to your computer and use it in GitHub Desktop.
# Template file for 'glycin-loaders'
pkgname=glycin-loaders
version=1.0.0
revision=1
build_style=meson
build_helper=rust
configure_args="-Dtest_skip_install=true"
hostmakedepends="cargo gettext pkg-config clang17"
makedepends="rust-std gtk4-devel libheif-devel libseccomp-devel
libjxl-devel"
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=cd2a3979259fee56cbd882a4d890437684bf1926e65afeafcb904ca9d17ae282
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}' / 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment