-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
# Template file for 'fractal' | ||
pkgname=fractal | ||
version=4.4.2 | ||
revision=2 | ||
version=9 | ||
revision=1 | ||
build_style=meson | ||
build_helper="rust" | ||
hostmakedepends="cargo pkg-config glib-devel gettext" | ||
makedepends="gtk+3-devel libglib-devel openssl-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 gst1-editing-services-devel python3-devel" | ||
hostmakedepends="cargo clang desktop-file-utils gettext glib-devel | ||
gtk-update-icon-cache pkg-config" | ||
makedepends="gst-plugins-base1-devel gtksourceview5-devel libadwaita-devel | ||
libshumate-devel pipewire-devel rust-std libwebp-devel libseccomp-devel" | ||
short_desc="Matrix Messaging Client for GNOME" | ||
maintainer="Cameron Nemo <[email protected]>" | ||
license="GPL-3.0-or-later" | ||
homepage="https://wiki.gnome.org/Apps/Fractal" | ||
distfiles="https://gitlab.gnome.org/GNOME/fractal/-/archive/${version}/fractal-${version}.tar.gz" | ||
checksum=97bb2f355fb1a89851bf16c17aed63063c6c0a79d8adcd31ce0ab82bc4a56f5e | ||
distfiles="https://gitlab.gnome.org/World/fractal/-/archive/${version}/fractal-${version}.tar.gz" | ||
checksum=61be5f378545fe4ef76feb7d5604aac6261a3dedcfb5dd756713eacc574d5373 | ||
|
||
if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then | ||
broken="limited by Rust + crate dependencies" | ||
fi | ||
|
||
post_patch() { | ||
[ -z "$CROSS_BUILD" ] && return 0 | ||
vsed -i "/xdg-desktop-portal/d" meson.build | ||
|
||
vsed -i scripts/cargo.sh \ | ||
-e 's;"$CARGO_TARGET_DIR";&/${RUST_TARGET};' \ | ||
-e '/CARGO_HOME/d' | ||
if [ "$CROSS_BUILD" ]; then | ||
vsed -i src/meson.build \ | ||
-e "s%rust_target /%'${RUST_TARGET}' / &%" | ||
fi | ||
} |