1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 05:17:07 +00:00
termux-packages/packages/mdbook-katex/build.sh
Termux Github Actions 5096dd7050 bump(main/mdbook-katex): 0.2.24
This commit has been automatically submitted by Github Actions.
2022-12-20 06:18:42 +00:00

25 lines
902 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/lzanini/mdbook-katex
TERMUX_PKG_DESCRIPTION="A preprocessor for mdBook, pre-rendering LaTex equations to HTML at build time"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.2.24"
TERMUX_PKG_SRCURL=https://github.com/lzanini/mdbook-katex/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9bbe10a2adc14cd95254f2c4945c7943ec8bb7133c6bee33da9d62bf02168aa4
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="openssl"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
export OPENSSL_INCLUDE_DIR=$TERMUX_PREFIX/include/openssl
export OPENSSL_LIB_DIR=$TERMUX_PREFIX/lib
}
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/mdbook-katex
}