# Maintainer: bunnylo1 pkgname=fractal _gitname=fractal epoch=1 pkgver=5.1 pkgrel=2 pkgdesc="Matrix messaging app for GNOME written in Rust" arch=('amd64' 'arm64' 'armel' 'armhf' 'i386' 'mipsel' 'mips64el' 'ppc64el' 's390x') license=('GPL3') url="https://gitlab.gnome.org/GNOME/fractal" depends=('libgtk-4-1' 'libgtksourceview-5-0' 'libges-1.0-0' 'libgspell-1-2' 'libadwaita-1-0' 'libpipewire-0.3-0' 'libssl3' 'libglib2.0-bin' 'libshumate-1.0-1' 'libgstreamer-plugins-bad1.0-0' 'gnome-keyring') conflicts=('fractal') provides=("fractal=$pkgver") makedepends=( 'libgtk-4-dev' 'libgtksourceview-5-dev' 'libgstreamer-plugins-bad1.0-dev' 'libges-1.0-dev' 'libgspell-1-dev' 'libadwaita-1-dev' 'libshumate-dev' 'libssl-dev' 'libpipewire-0.3-dev' 'rustc' 'cargo' 'git' 'meson' 'clang') source=("git+https://gitlab.gnome.org/GNOME/fractal.git") md5sums=('SKIP') #pkgver() { # cd "$_gitname" # ( # set -o pipefail # the -next rewrite is a completely separate git history, which does not have any tags yet # git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || # printf "5.alpha.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" # ) #} post_install(){ glib-compile-schemas /usr/share/glib-2.0/schemas/ } post_install='postinst' pre_remove='prerm' build() { cd "${srcdir}/${_gitname}/" meson . _build ninja -C _build } package() { cd "${srcdir}/${_gitname}/" DESTDIR="${pkgdir}" ninja -C _build install c="${pkgdir}/DEBIAN" mkdir -p "$c" cp "${startdir}/${post_install}" "${c}/postinst" cp "${startdir}/${pre_remove}" "${c}/prerm" }