11# Template file for 'fractal'
22pkgname=fractal
3- version=11.1
3+ version=13
44revision=1
55build_style=meson
66build_helper=rust
77hostmakedepends="cargo clang desktop-file-utils gettext glib-devel
8- gtk4-update-icon-cache nodejs pkg-config"
8+ gtk4-update-icon-cache nodejs pkg-config blueprint-compiler "
99makedepends="gst-plugins-base1-devel gtksourceview5-devel libadwaita-devel
1010 libseccomp-devel libshumate-devel pipewire-devel rust-std xdg-desktop-portal
1111 libwebp-devel"
@@ -16,29 +16,45 @@ license="GPL-3.0-or-later"
1616homepage="https://wiki.gnome.org/Apps/Fractal"
1717changelog="https://gitlab.gnome.org/World/fractal/-/releases"
1818distfiles="https://gitlab.gnome.org/World/fractal/-/archive/${version}/fractal-${version}.tar.gz"
19- checksum=64b84201976818d148a20351e4fcccc426739ccbfba485b911ca7625c559338f
19+ checksum=fae738e94f7ec9eb03712ddc0b9792397ea268bae859eaff5814a093953c7402
2020
2121export PATH="$PATH:$XBPS_BUILDDIR/${pkgname}-${version}/node_modules/.bin"
2222
23- if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
23+ if [ "$XBPS_TARGET_WORDSIZE" -eq 32 ]; then
2424 broken="runs out of memory when linking"
2525fi
2626nocross=yes
2727if [ "$XBPS_TARGET_LIBC" = musl ]; then
28- broken="broken "
28+ broken="glycin crate needs libc::close_range "
2929fi
3030
3131post_patch() {
3232 if [ "$CROSS_BUILD" ]; then
3333 vsed -i src/meson.build \
3434 -e "s%rust_target /%'${RUST_TARGET}' / &%"
3535 fi
36+ # this package uses stupid amounts of memory when allowed to do LTO
37+ # also, by setting codegen-units to 1, upstream tries to optimise more
38+ # but just ends up using more memory
39+ # disable debug information generation to further lower memory usage
40+ vsed -i Cargo.toml -e 's/lto = "thin"/lto = "off"/; /codegen-units/d; s/debug = true/debug = false/'
3641}
3742
3843pre_configure() {
3944 npm i sass
4045}
4146
47+ pre_build() {
48+ if [ "$CROSS_BUILD" ]; then
49+ export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0"
50+ fi
51+ }
52+
53+ # NOTE: explicitly prevent rebuild due to XBPS wrappers being regenerated
54+ do_check() {
55+ meson test -C build --no-rebuild ${makejobs}
56+ }
57+
4258# NOTE: explicitly prevent rebuild: https://gitlab.gnome.org/GNOME/fractal/-/issues/1327
4359do_install() {
4460 meson install -C build --destdir $DESTDIR --no-rebuild
0 commit comments