36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
# Description: Matrix chat client using GTK widgets
|
|
# URL: https://gitlab.gnome.org/GNOME/fractal
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
# Depends on: gst-editing-services gst-plugins-bad gtksourceview4 libhandy rust
|
|
# Optional: gtk-doc
|
|
|
|
name=fractal
|
|
version=4.4.1
|
|
release=1
|
|
source=(https://gitlab.gnome.org/GNOME/$name/-/archive/release-$version/$name-release-$version.tar.bz2 no-gtk-doc.vim org.gnome.Fractal.desktop)
|
|
|
|
build() {
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
mkdir -p $PKGMK_SOURCE_DIR/rust
|
|
export CARGO_HOME=$PKGMK_SOURCE_DIR/rust
|
|
|
|
if prt-get isinst gtk-doc; then
|
|
cd $name-release-$version
|
|
else
|
|
cd $name-release-$version/fractal-gtk/res
|
|
vim -s $SRC/no-gtk-doc.vim meson.build
|
|
cd ../..
|
|
fi
|
|
|
|
sed -i 's/dead_code, //g' fractal-gtk/src/main.rs
|
|
meson build --prefix=/usr -Db_lto=true -Db_pie=true
|
|
ninja -C build
|
|
DESTDIR=$PKG ninja -C build install
|
|
|
|
mkdir -p $PKG/usr/share/applications
|
|
install -Dm0644 $SRC/org.gnome.Fractal.desktop $PKG/usr/share/applications
|
|
|
|
# clean up footprint
|
|
rm -rf $PKG/usr/share/locale
|
|
}
|