aboutsummaryrefslogtreecommitdiffstats
path: root/community/tectonic/APKBUILD
blob: c645e3a1beedeecc444eccbde323e769c516ad85 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tectonic
pkgver=0.8.2
pkgrel=2
pkgdesc="Tectonic is a modernized, complete, self-contained TeX/LaTeX engine"
url="https://tectonic-typesetting.github.io"
# s390x, riscv64: rust
# 32-bit: SIGSEGVs in tests
arch="all !s390x !armhf !armv7 !x86 !riscv64"
license="MIT"
# needed for font things
depends="icu-data-full"
makedepends="
	cargo
	harfbuzz-dev
	openssl1.1-compat-dev
	fontconfig-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/tectonic-typesetting/tectonic/archive/tectonic@$pkgver.tar.gz
	"
builddir="$srcdir/tectonic-tectonic-$pkgver"

build() {
	cargo build --release --features=external-harfbuzz
}

check() {
	cargo test --release --features=external-harfbuzz
}

package() {
	install -Dm755 "$builddir"/target/release/tectonic "$pkgdir"/usr/bin/tectonic
}
sha512sums="
71ac3c446487d2865ed828e6230a964e281aa403d5b2bb9949fde4e5b015e2b725bcc635d59a7e63441b9914cab5a9639b425a07c31f2ab50f20a927e58aca82  tectonic-0.8.2.tar.gz
"