aboutsummaryrefslogtreecommitdiffstats
path: root/community/tectonic/APKBUILD
blob: 5aaec0f6ff321ee065b6bd237a375d7ac8d168c7 (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
43
44
45
46
47
48
49
50
51
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tectonic
pkgver=0.12.0
pkgrel=0
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
	openssl-dev>3
	fontconfig-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/tectonic-typesetting/tectonic/archive/tectonic@$pkgver.tar.gz
	"
builddir="$srcdir/tectonic-tectonic-$pkgver"
options="!check" # needs unpackages ubuntu mono font

export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
export CARGO_PROFILE_RELEASE_LTO="true"
export CARGO_PROFILE_RELEASE_OPT_LEVEL="s"
export CARGO_PROFILE_RELEASE_PANIC="abort"

prepare() {
	default_prepare

	cargo fetch --locked
}

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

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

package() {
	install -Dm755 "$builddir"/target/release/tectonic "$pkgdir"/usr/bin/tectonic
}

sha512sums="
e37dffc343eeb956a0344d1451ded1004309588ee83d5ef94fefa0e9cec60b6b985f880d0083b418fcabc862c1b9bb413123e0c2c3ffaa5abaf46d126f089367  tectonic-0.12.0.tar.gz
"