void-packages/srcpkgs/fractal/template

29 lines
1 KiB
Bash

# Template file for 'fractal'
pkgname=fractal
version=4.2.2
revision=1
build_style=meson
build_helper="rust"
hostmakedepends="cargo pkg-config glib-devel"
makedepends="gtk+3-devel libglib-devel libressl-devel gstreamer1-devel
cairo-devel gettext-devel gst-plugins-base1-devel gst-plugins-bad1-devel
gst1-editing-services-devel gtksourceview4-devel pango-devel gspell-devel
gmp-devel libsecret-devel libhandy-devel rust-std"
short_desc="Matrix Messaging Client for GNOME"
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://wiki.gnome.org/Apps/Fractal"
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/$version/$pkgname-$version.tar.gz"
checksum=3f722e2fbadd6cee1ce98a92cf718c8051532dfd71180a453695365aa80d2b02
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
broken="error: Could not compile gtk. (segfaults rustc)"
fi
post_patch() {
[ -z "$CROSS_BUILD" ] && return 0
vsed -i scripts/cargo.sh \
-e 's;"$CARGO_TARGET_DIR";&/${RUST_TARGET};' \
-e '/CARGO_HOME/d'
}