aboutsummaryrefslogtreecommitdiffstats
path: root/community/fractal/APKBUILD
blob: b3a920a199c5839db52637c58819753e5f33312e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=fractal
pkgver=4.4.0
pkgrel=0
pkgdesc="Matrix group messaging app"
url="https://wiki.gnome.org/Apps/Fractal"
arch="x86_64 x86 armhf armv7 aarch64 ppc64le" # limited by Rust
license="GPL-3.0-or-later"
depends="dbus:org.freedesktop.Secrets xdg-utils"
makedepends="meson gtk+3.0-dev dbus-dev openssl-dev gspell-dev libhandy-dev
	gtksourceview4-dev gstreamer-dev gst-plugins-base-dev gst-plugins-bad-dev
	gst-editing-services-dev glib-dev cargo gmp-dev"
options="!check" # no tests
subpackages="$pkgname-lang"
source="https://gitlab.gnome.org/GNOME/fractal/-/archive/$pkgver/fractal-$pkgver.tar.gz"

case "$CARCH" in
	x86)
		export CFLAGS="$CFLAGS -fno-stack-protector"
		;;
esac

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="0dfc363ad7f152976e224bdab52b469f8277b214cf47180611a26622ea9e370477c947ace62fe0a6b275e79416b0288c7d021ca3afb387277810a9a26433d6ef  fractal-4.4.0.tar.gz"