From cf8d5e21cee28a38084fbf0346b8bebbd49d1bba Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Sun, 7 Jan 2024 01:32:28 +0300 Subject: [PATCH 1/2] New package: glycin-loaders-1.0.0 --- srcpkgs/glycin-loaders/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/glycin-loaders/template diff --git a/srcpkgs/glycin-loaders/template b/srcpkgs/glycin-loaders/template new file mode 100644 index 00000000000000..7d923e12f3c228 --- /dev/null +++ b/srcpkgs/glycin-loaders/template @@ -0,0 +1,27 @@ +# 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 clang17 gettext pkg-config" +makedepends="gtk4-devel libheif-devel libjxl-devel libseccomp-devel rust-std" +short_desc="Sandboxed and extendable image decoding" +maintainer="chrysos349 " +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}' / &%" + 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 +} From 5bb0b94ca3d19a747e0d926e944f41159287697d Mon Sep 17 00:00:00 2001 From: chrysos349 Date: Sun, 7 Jan 2024 01:33:02 +0300 Subject: [PATCH 2/2] New package: loupe-46.0 --- srcpkgs/loupe/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/loupe/template diff --git a/srcpkgs/loupe/template b/srcpkgs/loupe/template new file mode 100644 index 00000000000000..c1497dc076bb46 --- /dev/null +++ b/srcpkgs/loupe/template @@ -0,0 +1,25 @@ +# Template file for 'loupe' +pkgname=loupe +version=46.0 +revision=1 +build_style=meson +build_helper=rust +hostmakedepends="cargo desktop-file-utils gettext gtk4-update-icon-cache + itstool pkg-config" +makedepends="lcms2-devel libadwaita-devel libgweather-devel libseccomp-devel + rust-std" +depends="glycin-loaders" +short_desc="Simple image viewer for GNOME" +maintainer="chrysos349 " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/GNOME/loupe" +changelog="https://gitlab.gnome.org/GNOME/loupe/-/raw/main/NEWS" +distfiles="${GNOME_SITE}/loupe/${version%.*}/loupe-${version}.tar.xz" +checksum=051aa45cf0ab362093fbf91863140be737db57bcb1f77bc1e00ab97255a252bd + +post_patch() { + if [ "$CROSS_BUILD" ]; then + vsed -i src/meson.build \ + -e "s%rust_target /%'${RUST_TARGET}' / &%" + fi +}