Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 21 additions & 5 deletions srcpkgs/fractal/template
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Template file for 'fractal'
pkgname=fractal
version=11.1
version=13
revision=1
build_style=meson
build_helper=rust
hostmakedepends="cargo clang desktop-file-utils gettext glib-devel
gtk4-update-icon-cache nodejs pkg-config"
gtk4-update-icon-cache nodejs pkg-config blueprint-compiler"
makedepends="gst-plugins-base1-devel gtksourceview5-devel libadwaita-devel
libseccomp-devel libshumate-devel pipewire-devel rust-std xdg-desktop-portal
libwebp-devel"
Expand All @@ -16,29 +16,45 @@ license="GPL-3.0-or-later"
homepage="https://wiki.gnome.org/Apps/Fractal"
changelog="https://gitlab.gnome.org/World/fractal/-/releases"
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/${version}/fractal-${version}.tar.gz"
checksum=64b84201976818d148a20351e4fcccc426739ccbfba485b911ca7625c559338f
checksum=fae738e94f7ec9eb03712ddc0b9792397ea268bae859eaff5814a093953c7402

export PATH="$PATH:$XBPS_BUILDDIR/${pkgname}-${version}/node_modules/.bin"

if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
if [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then
broken="runs out of memory when linking"
fi
nocross=yes
if [ "$XBPS_TARGET_LIBC" = musl ]; then
broken="broken"
broken="glycin crate needs libc::close_range"
fi

post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / &%"
fi
# this package uses stupid amounts of memory when allowed to do LTO
# also, by setting codegen-units to 1, upstream tries to optimise more
# but just ends up using more memory
# disable debug information generation to further lower memory usage
vsed -i Cargo.toml -e 's/lto = "thin"/lto = "off"/; /codegen-units/d; s/debug = true/debug = false/'
}

pre_configure() {
npm i sass
}

pre_build() {
if [ "$CROSS_BUILD" ]; then
export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0"
fi
}

# NOTE: explicitly prevent rebuild due to XBPS wrappers being regenerated
do_check() {
meson test -C build --no-rebuild ${makejobs}
}

# NOTE: explicitly prevent rebuild: https://gitlab.gnome.org/GNOME/fractal/-/issues/1327
do_install() {
meson install -C build --destdir $DESTDIR --no-rebuild
Expand Down
28 changes: 14 additions & 14 deletions srcpkgs/glycin/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'glycin'
pkgname=glycin
version=1.2.3
version=2.0.7
revision=1
build_style=meson
build_helper="rust gir"
Expand All @@ -16,7 +16,7 @@ homepage="https://gitlab.gnome.org/GNOME/glycin"
changelog="https://gitlab.gnome.org/GNOME/glycin/-/raw/1.2/NEWS"
#changelog="https://gitlab.gnome.org/GNOME/glycin/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/glycin/${version%.*}/glycin-${version}.tar.xz"
checksum=380aafe2bfb4eca0c45b42660ebff449600d00a43b609d5b1c83f795f5c8fb3c
checksum=c416ac29b6d3ecdc67b90c15537ba1293ceb7af96fa101cae67b7d1d37e50ab0
make_check=no # needs to be installed to run tests

if [ "$CROSS_BUILD" ]; then
Expand Down Expand Up @@ -46,32 +46,32 @@ 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/glycin-1.*
vmove usr/include/glycin-2
vmove usr/lib/pkgconfig/glycin-2.pc
vmove usr/lib/libglycin-2.so
vmove usr/share/gir-1.0/Gly-2.gir
vmove usr/share/vala/vapi/glycin-2.*
}
}

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
vmove "usr/lib/libglycin-gtk4-2.so.*"
vmove usr/lib/girepository-1.0/GlyGtk4-2.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/glycin-gtk4-1.*
vmove usr/include/glycin-gtk4-2
vmove usr/lib/pkgconfig/glycin-gtk4-2.pc
vmove usr/lib/libglycin-gtk4-2.so
vmove usr/share/gir-1.0/GlyGtk4-2.gir
vmove usr/share/vala/vapi/glycin-gtk4-2.*
}
}

Expand Down
8 changes: 6 additions & 2 deletions srcpkgs/loupe/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'loupe'
pkgname=loupe
version=48.1
version=49.2
revision=1
build_style=meson
build_helper=rust
Expand All @@ -16,7 +16,11 @@ homepage="https://gitlab.gnome.org/GNOME/loupe"
changelog="https://gitlab.gnome.org/GNOME/loupe/-/raw/gnome-48/NEWS"
#changelog="https://gitlab.gnome.org/GNOME/loupe/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/loupe/${version%.*}/loupe-${version}.tar.xz"
checksum=10713d3e96789d077ae7d3389452a5f6c397ddf43a50c071cbfe2d12725970de
checksum=5853e75cceba7fa2bea01be273cd2f0a3061941e7bdfe3a008b233171067142c

if [ "$XBPS_TARGET_LIBC" = musl ]; then
broken="broken"
fi

post_patch() {
if [ "$CROSS_BUILD" ]; then
Expand Down