# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=tau pkgver=0.9.2 pkgrel=0 pkgdesc="GTK frontend for the Xi text editor, written in Rust" url="https://gitlab.gnome.org/World/Tau" arch="x86_64 x86 armhf armv7 aarch64 ppc64le" license="MIT" makedepends="meson cargo gtk+3.0-dev" checkdepends="appstream-glib desktop-file-utils" options="!check" # Rust doesn't like to compile these on musl subpackages="$pkgname-lang" source="https://gitlab.gnome.org/World/Tau/uploads/fdf09640e3837ad509f5c4b1da0c26e3/tau-$pkgver.tar.xz" build() { # Fails to compile libbacktrace-sys otherwise case "$CARCH" in x86) export CFLAGS="$CFLAGS -fno-stack-protector" ;; esac meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="32dc1569a85d3ac29edce4e6e6fd5228c80aead68e9e1ebfb69a14e49b0fba55dd7201e95a76c68674c85ffa84ffab83dff2b46c5e51f3a3175d78c6084e8629 tau-0.9.2.tar.xz"