void-packages/srcpkgs/tectonic/template

35 lines
975 B
Bash

#template file for 'tectonic'
pkgname=tectonic
version=0.1.7
revision=4
hostmakedepends="rust cargo pkg-config"
makedepends="fontconfig-devel freetype-devel harfbuzz-devel graphite-devel libressl-devel libpng-devel zlib-devel icu-devel icu-libs"
short_desc="A modernized, complete, self-contained TeX/LaTeX engine"
maintainer="Chinmay Pai <chinmaydpai@gmail.com>"
license="MIT"
homepage="https://tectonic-typesetting.github.io"
distfiles="https://github.com/tectonic-typesetting/${pkgname}/archive/v${version}.tar.gz"
checksum=c39acc8a4e2e102245037fd2ea3e77b058d25e29bbab0dcc53a3167c5d3fee2a
nocross=yes
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/9607/steps/shell_3/logs/stdio"
esac
do_build() {
cargo update --package openssl-sys --precise 0.9.28
cargo build --release
}
do_check() {
cargo test --release
}
do_install() {
vbin target/release/${pkgname}
}
post_install() {
vlicense LICENSE
}