Skip to content

Commit 763edc2

Browse files
committed
fractal: update to 13
void-linux#58506
1 parent ee8441b commit 763edc2

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

srcpkgs/fractal/template

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Template file for 'fractal'
22
pkgname=fractal
3-
version=11.1
3+
version=13
44
revision=1
55
build_style=meson
66
build_helper=rust
77
hostmakedepends="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"
99
makedepends="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"
1616
homepage="https://wiki.gnome.org/Apps/Fractal"
1717
changelog="https://gitlab.gnome.org/World/fractal/-/releases"
1818
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/${version}/fractal-${version}.tar.gz"
19-
checksum=64b84201976818d148a20351e4fcccc426739ccbfba485b911ca7625c559338f
19+
checksum=fae738e94f7ec9eb03712ddc0b9792397ea268bae859eaff5814a093953c7402
2020

2121
export 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"
2525
fi
2626
nocross=yes
2727
if [ "$XBPS_TARGET_LIBC" = musl ]; then
28-
broken="broken"
28+
broken="glycin crate needs libc::close_range"
2929
fi
3030

3131
post_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

3843
pre_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
4359
do_install() {
4460
meson install -C build --destdir $DESTDIR --no-rebuild

0 commit comments

Comments
 (0)