glycin: update to 1.1.4, rename from glycin-loaders

This commit is contained in:
oreo639 2025-02-16 00:51:43 -08:00 committed by oreo639
parent d98b4c999f
commit ba615c8a24
6 changed files with 84 additions and 27 deletions

1
srcpkgs/glycin-devel Symbolic link
View File

@ -0,0 +1 @@
glycin

1
srcpkgs/glycin-gtk4 Symbolic link
View File

@ -0,0 +1 @@
glycin

1
srcpkgs/glycin-gtk4-devel Symbolic link
View File

@ -0,0 +1 @@
glycin

1
srcpkgs/glycin-loaders Symbolic link
View File

@ -0,0 +1 @@
glycin

View File

@ -1,27 +0,0 @@
# 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
}

80
srcpkgs/glycin/template Normal file
View File

@ -0,0 +1,80 @@
# Template file for 'glycin'
pkgname=glycin
version=1.1.4
revision=1
build_style=meson
build_helper="rust gir"
configure_args="-Dtest_skip_install=true"
hostmakedepends="cargo clang19 gettext pkg-config vala"
makedepends="gtk4-devel libheif-devel libjxl-devel librsvg-devel
libseccomp-devel rust-std"
depends="glycin-loaders>=${version}_${revision}"
short_desc="Sandboxed and extendable image decoding"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="MPL-2.0"
homepage="https://gitlab.gnome.org/GNOME/glycin"
changelog="https://gitlab.gnome.org/GNOME/glycin/-/raw/gnome-47/NEWS"
#changelog="https://gitlab.gnome.org/GNOME/glycin/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/glycin/${version%.*}/glycin-${version}.tar.xz"
checksum=d1b6d590b699b6681a67d01198a581a7f710d8ca7450934dd7f5db241fa12500
make_check=no # needs to be installed to run tests
if [ "$CROSS_BUILD" ]; then
XBPS_CROSS_RUSTFLAGS+=" -L$XBPS_BUILDDIR/${pkgname}-${version}/build/libglycin"
fi
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i meson.build \
-e "s|rust_target =|rust_target = '${RUST_TARGET}' / |"
fi
# Fix CARGO_HOME path so it is shared across masterdirs
vsed -i meson.build \
-e "s|cargo_home =.*|cargo_home = '${CARGO_HOME}'|g"
# 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
}
glycin-devel_package() {
depends="glycin>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include/glycin-1
vmove usr/lib/pkgconfig/glycin-1.pc
vmove usr/lib/libglycin-1.so
vmove usr/share/gir-1.0/Gly-1.gir
vmove usr/share/vala/vapi/libglycin-1.*
}
}
glycin-gtk4_package() {
depends="glycin>=${version}_${revision}"
short_desc+=" - GTK4 integration"
pkg_install() {
vmove "usr/lib/libglycin-gtk4-1.so.*"
vmove usr/lib/girepository-1.0/GlyGtk4-1.typelib
}
}
glycin-gtk4-devel_package() {
depends="glycin-gtk4>=${version}_${revision}"
short_desc+=" - GTK4 development files"
pkg_install() {
vmove usr/include/glycin-gtk4-1
vmove usr/lib/pkgconfig/glycin-gtk4-1.pc
vmove usr/lib/libglycin-gtk4-1.so
vmove usr/share/gir-1.0/GlyGtk4-1.gir
vmove usr/share/vala/vapi/libglycin-gtk4-1.*
}
}
glycin-loaders_package() {
short_desc+=" - image loading backends"
pkg_install() {
vmove usr/libexec/glycin-loaders
vmove usr/share/glycin-loaders
}
}