Date: Tuesday, February 8, 2022 @ 15:15:08 Author: freswa Revision: 1129240
move tectonic from unsupported to community Added: tectonic/ tectonic/repos/ tectonic/trunk/ tectonic/trunk/PKGBUILD ----------+ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) Added: tectonic/trunk/PKGBUILD =================================================================== --- tectonic/trunk/PKGBUILD (rev 0) +++ tectonic/trunk/PKGBUILD 2022-02-08 15:15:08 UTC (rev 1129240) @@ -0,0 +1,41 @@ +# Maintainer: Frederik Schwan <freswa at archlinux dot org> +# Contributor: tectonic-deploy <sasha+tecto...@hackafe.net> +# Contributor: Daniel M. Capella <poly...@archlinux.org> +# Contributor: Jan Tojnar <jtoj...@gmail.com> + +pkgname=tectonic +pkgver=0.8.0 +pkgrel=2 +pkgdesc='Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive' +arch=('x86_64') +url='https://tectonic-typesetting.github.io/' +license=('MIT') +depends=('fontconfig' 'harfbuzz-icu' 'openssl') +makedepends=('cargo' 'pkg-config') +options=(!lto) +source=("https://github.com/tectonic-typesetting/tectonic/archive/refs/tags/tectonic@${pkgver}.tar.gz") +b2sums=('7587760d15b913ad0afe02d7087b32a311a88076cdb2894a8de64027a112b419eeb5cd1e908869e4ad542dd784b192fd36ddc76f95d692eefa1e45fe59e43352') + +prepare() { + cd ${pkgname}-${pkgname}-${pkgver} + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd ${pkgname}-${pkgname}-${pkgver} + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --release --locked --features external-harfbuzz +} + +check() { + cd ${pkgname}-${pkgname}-${pkgver} + export RUSTUP_TOOLCHAIN=stable + cargo test --release --locked --features external-harfbuzz +} + +package() { + cd ${pkgname}-${pkgname}-${pkgver} + install -Dm755 target/release/tectonic "${pkgdir}"/usr/bin/tectonic + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +}