Merge branch 'new-packages'
This commit is contained in:
commit
b5e1068c50
45
packages/librusty-v8/build.sh
Normal file
45
packages/librusty-v8/build.sh
Normal file
@ -0,0 +1,45 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/denoland/rusty_v8
|
||||
TERMUX_PKG_DESCRIPTION="High quality Rust bindings to V8's C++ API"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
_COMMIT=2fdcc0c629f5c6c2f251dec4a0f2cb370814dd26
|
||||
TERMUX_PKG_VERSION=2022.01.13
|
||||
TERMUX_PKG_SRCURL=https://github.com/denoland/rusty_v8.git
|
||||
TERMUX_PKG_GIT_BRANCH=main
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_NO_STATICSPLIT=true
|
||||
TERMUX_PKG_BLACKLISTED_ARCHES="arm, i686, x86_64"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git fetch --unshallow
|
||||
git checkout $_COMMIT
|
||||
|
||||
local version="$(git log -1 --format=%cs | sed 's/-/./g')"
|
||||
if [ "$version" != "$TERMUX_PKG_VERSION" ]; then
|
||||
echo -n "ERROR: The specified version \"$TERMUX_PKG_VERSION\""
|
||||
echo " is different from what is expected to be: \"$version\""
|
||||
return 1
|
||||
fi
|
||||
|
||||
git submodule update --init --recursive
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
export V8_FROM_SOURCE=1
|
||||
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
|
||||
}
|
||||
|
||||
termux_step_make() {
|
||||
termux_setup_rust
|
||||
cargo build --jobs $TERMUX_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
install -Dm600 -t $TERMUX_PREFIX/lib \
|
||||
target/$CARGO_TARGET_NAME/release/gn_out/obj/librusty_v8.a
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
unset V8_FROM_SOURCE
|
||||
unset PKG_CONFIG_PATH
|
||||
}
|
27
packages/mdbook-linkcheck/build.sh
Normal file
27
packages/mdbook-linkcheck/build.sh
Normal 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
|
||||
}
|
16
packages/mdbook-mermaid/build.sh
Normal file
16
packages/mdbook-mermaid/build.sh
Normal file
@ -0,0 +1,16 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/badboy/mdbook-mermaid
|
||||
TERMUX_PKG_DESCRIPTION="A preprocessor for mdbook to add mermaid support"
|
||||
TERMUX_PKG_LICENSE="MPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.8.3
|
||||
TERMUX_PKG_SRCURL=https://github.com/badboy/mdbook-mermaid.git
|
||||
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/mdbook-mermaid
|
||||
}
|
17
packages/mdbook-open-on-gh/build.sh
Normal file
17
packages/mdbook-open-on-gh/build.sh
Normal file
@ -0,0 +1,17 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/badboy/mdbook-open-on-gh
|
||||
TERMUX_PKG_DESCRIPTION="A preprocessor for mdbook to add a open-on-github link on every page"
|
||||
TERMUX_PKG_LICENSE="MPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2.0.1
|
||||
TERMUX_PKG_SRCURL=https://github.com/badboy/mdbook-open-on-gh.git
|
||||
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
|
||||
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/mdbook-open-on-gh
|
||||
}
|
22
packages/mdbook-plantuml/build.sh
Normal file
22
packages/mdbook-plantuml/build.sh
Normal file
@ -0,0 +1,22 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/sytsereitsma/mdbook-plantuml
|
||||
TERMUX_PKG_DESCRIPTION="mdBook preprocessor to render PlantUML code blocks as images in your book"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.7.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/sytsereitsma/mdbook-plantuml.git
|
||||
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-plantuml
|
||||
}
|
17
packages/mdbook-toc/build.sh
Normal file
17
packages/mdbook-toc/build.sh
Normal file
@ -0,0 +1,17 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/badboy/mdbook-toc
|
||||
TERMUX_PKG_DESCRIPTION="A preprocessor for mdbook to add inline Table of Contents support"
|
||||
TERMUX_PKG_LICENSE="MPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.7.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/badboy/mdbook-toc.git
|
||||
TERMUX_PKG_GIT_BRANCH=$TERMUX_PKG_VERSION
|
||||
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/mdbook-toc
|
||||
}
|
Loading…
Reference in New Issue
Block a user