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,41 @@ 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
24- broken="runs out of memory when linking"
25- fi
26- nocross=yes
27- if [ "$XBPS_TARGET_LIBC" = musl ]; then
28- broken="broken"
29- fi
23+ case "$XBPS_TARGET_MACHINE" in
24+ i686*) broken="runs out of memory when linking" ;;
25+ esac
3026
3127post_patch() {
3228 if [ "$CROSS_BUILD" ]; then
3329 vsed -i src/meson.build \
3430 -e "s%rust_target /%'${RUST_TARGET}' / &%"
3531 fi
32+ # this package uses stupid amounts of memory when allowed to do LTO
33+ # also, by setting codegen-units to 1, upstream tries to optimise more
34+ # but just ends up using more memory
35+ # disable debug information generation to further lower memory usage
36+ vsed -i Cargo.toml -e 's/lto = "thin"/lto = "off"/; /codegen-units/d; s/debug = true/debug = false/'
3637}
3738
3839pre_configure() {
3940 npm i sass
4041}
4142
43+ pre_build() {
44+ if [ "$CROSS_BUILD" ]; then
45+ export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0"
46+ fi
47+ }
48+
49+ # NOTE: explicitly prevent rebuild due to XBPS wrappers being regenerated
50+ do_check() {
51+ meson test -C build --no-rebuild ${makejobs}
52+ }
53+
4254# NOTE: explicitly prevent rebuild: https://gitlab.gnome.org/GNOME/fractal/-/issues/1327
4355do_install() {
4456 meson install -C build --destdir $DESTDIR --no-rebuild
0 commit comments