From 7538f6902112235436b2c7091bc45b22af3a31d8 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Tue, 13 Aug 2019 21:38:11 +0200 Subject: [PATCH] asciidoc: add package --- packages/asciidoc/build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/asciidoc/build.sh diff --git a/packages/asciidoc/build.sh b/packages/asciidoc/build.sh new file mode 100644 index 000000000..4f43c5f04 --- /dev/null +++ b/packages/asciidoc/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE=http://asciidoc.org +TERMUX_PKG_DESCRIPTION="Text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs" +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_VERSION=8.6.10 +TERMUX_PKG_SRCURL=https://github.com/asciidoc/asciidoc/archive/${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=9e52f8578d891beaef25730a92a6e723596ddbd07bfe0d2a56486fcf63a0b983 +TERMUX_PKG_DEPENDS="libxslt, python2" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_pre_configure() { + sed -i -e 's#python a2x.py#python2 a2x.py#' Makefile.in + autoreconf -vfi +} + +termux_step_post_make_install() { + make docs + install -Dm644 asciidocapi.py \ + $TERMUX_PREFIX/lib/python2.7/site-packages/asciidocapi.py + +}