new package: mdbook-linkcheck

This commit is contained in:
Tee KOBAYASHI 2022-01-16 17:17:25 +09:00 committed by Leonid Pliushch
parent 25d047fe70
commit c26c195400
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
TERMUX_PKG_HOMEPAGE=https://michael-f-bryan.github.io/mdbook-linkcheck/
TERMUX_PKG_DESCRIPTION="A backend for mdbook which will check your links for you"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.7.6
TERMUX_PKG_SRCURL=https://github.com/Michael-F-Bryan/mdbook-linkcheck.git
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
if [ "$TERMUX_ARCH" == "i686" ]; then
local libdir=target/i686-linux-android/release/deps
mkdir -p $libdir
pushd $libdir
local libgcc="$($CC -print-libgcc-file-name)"
echo "INPUT($libgcc -l:libunwind.a)" > libgcc.so
popd
fi
}
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-linkcheck
}