From 25d047fe7096df47a139f00829a360f9cdd2e62d Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 16 Jan 2022 17:14:31 +0900 Subject: [PATCH 1/6] new package: mdbook-toc --- packages/mdbook-toc/build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/mdbook-toc/build.sh diff --git a/packages/mdbook-toc/build.sh b/packages/mdbook-toc/build.sh new file mode 100644 index 000000000..9427643d9 --- /dev/null +++ b/packages/mdbook-toc/build.sh @@ -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 +} From c26c195400f973b93a3c038df1c9fcf941eec05a Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 16 Jan 2022 17:17:25 +0900 Subject: [PATCH 2/6] new package: mdbook-linkcheck --- packages/mdbook-linkcheck/build.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 packages/mdbook-linkcheck/build.sh diff --git a/packages/mdbook-linkcheck/build.sh b/packages/mdbook-linkcheck/build.sh new file mode 100644 index 000000000..29ca02986 --- /dev/null +++ b/packages/mdbook-linkcheck/build.sh @@ -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 +} From 457ce4608c1592db21fa18fc4a1064f452f20665 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 16 Jan 2022 17:20:51 +0900 Subject: [PATCH 3/6] new package: mdbook-mermaid --- packages/mdbook-mermaid/build.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/mdbook-mermaid/build.sh diff --git a/packages/mdbook-mermaid/build.sh b/packages/mdbook-mermaid/build.sh new file mode 100644 index 000000000..4fff346b1 --- /dev/null +++ b/packages/mdbook-mermaid/build.sh @@ -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 +} From 4db25cbd2d285a265023f2d23028a92f6c4134d9 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 16 Jan 2022 17:23:37 +0900 Subject: [PATCH 4/6] new package: mdbook-plantuml --- packages/mdbook-plantuml/build.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 packages/mdbook-plantuml/build.sh diff --git a/packages/mdbook-plantuml/build.sh b/packages/mdbook-plantuml/build.sh new file mode 100644 index 000000000..0d3d7bb23 --- /dev/null +++ b/packages/mdbook-plantuml/build.sh @@ -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 +} From fcfb07dcc4e2c70433f67bd5672cbe5b7982f0c1 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 16 Jan 2022 17:26:10 +0900 Subject: [PATCH 5/6] new package: mdbook-open-on-gh --- packages/mdbook-open-on-gh/build.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/mdbook-open-on-gh/build.sh diff --git a/packages/mdbook-open-on-gh/build.sh b/packages/mdbook-open-on-gh/build.sh new file mode 100644 index 000000000..8e5c837f7 --- /dev/null +++ b/packages/mdbook-open-on-gh/build.sh @@ -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 +} From f0153a6e7850f2d0739fdb167fbcb2e7a1ff8db5 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Sun, 16 Jan 2022 14:55:05 +0900 Subject: [PATCH 6/6] new package: librusty-v8 --- packages/librusty-v8/build.sh | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 packages/librusty-v8/build.sh diff --git a/packages/librusty-v8/build.sh b/packages/librusty-v8/build.sh new file mode 100644 index 000000000..5b4f3c689 --- /dev/null +++ b/packages/librusty-v8/build.sh @@ -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 +}