# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=tectonic pkgver=0.14.1 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 cargo-auditable curl-dev fontconfig-dev harfbuzz-dev openssl-dev>3 " source=" $pkgname-$pkgver.tar.gz::https://github.com/tectonic-typesetting/tectonic/archive/tectonic@$pkgver.tar.gz " builddir="$srcdir/tectonic-tectonic-$pkgver" options="net !check" # needs unpackages ubuntu mono font _features="--no-default-features --features=external-harfbuzz,geturl-curl" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --release --frozen $_features } check() { cargo test --frozen $_features } package() { install -Dm755 target/release/tectonic "$pkgdir"/usr/bin/tectonic } sha512sums=" 593acae4f1ab0bb60231555d67a0f453824b6d82d71e7a63a7eb581d2155c09f43b89297728af47dbd24d299ae93cdd2a08fa387a647833b40ea4f8e6a8f7948 tectonic-0.14.1.tar.gz "