aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tau/APKBUILD
blob: ece823b0bdb76a75212a04d78fadceda1342e401 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tau
pkgver=0.10.2
pkgrel=2
pkgdesc="GTK frontend for the Xi text editor, written in Rust"
url="https://gitlab.gnome.org/World/Tau"
arch="all !s390x"
license="MIT"
makedepends="meson cargo gtk+3.0-dev libhandy-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/d7d7fc22a851466768edeace0f3d6b1b/tau-$pkgver.tar.xz"

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

check() {
	ninja -C output test
}

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

sha512sums="b2f9cec07de60c29c6a2d395955a118593bc0a4c333f6dee75139f9150406589d43e6bb48e238ec35aec6b4d4b79beddc74808221614018d224e22601fbe8d33  tau-0.10.2.tar.xz"