Files
termux-packages/packages/tectonic/build.sh
termux-pacman-bot 7f91c4a73d fix(main/tectonic): downgrade app_dirs crate to 1.2.1
Similar as seen for tealdeer, app_dirs / android-ndk-rs does not
support termux's environment.  Downgrade the crate to 1.2.1 until that
has been fixed or a workaround implemented.

See also: termux/termux-packages#9072
Fixes: termux/termux-packages#11900
2022-09-12 17:00:39 +00:00

19 lines
693 B
Bash

TERMUX_PKG_HOMEPAGE=https://tectonic-typesetting.github.io/
TERMUX_PKG_DESCRIPTION="A modernized, complete, self-contained TeX/LaTeX engine"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.9.0
TERMUX_PKG_SRCURL=https://github.com/tectonic-typesetting/tectonic.git
TERMUX_PKG_GIT_BRANCH=tectonic@${TERMUX_PKG_VERSION}
TERMUX_PKG_DEPENDS="fontconfig, harfbuzz, libgraphite, libicu, openssl, zlib"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
termux_setup_rust
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/tectonic
}