aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tau/APKBUILD
blob: 7a67ede0b2e4b8a90e82d2ade727ff658321df27 (plain)
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
40
41
42
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
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"