termux-packages/packages/asciidoc/build.sh

22 lines
757 B
Bash
Raw Normal View History

2020-06-21 22:23:56 +02:00
TERMUX_PKG_HOMEPAGE=https://asciidoc.org
TERMUX_PKG_DESCRIPTION="Text document format for short documents, articles, books and UNIX man pages."
2019-08-13 21:38:11 +02:00
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=8.6.10
2020-06-21 22:49:08 +02:00
TERMUX_PKG_REVISION=2
2019-08-13 21:38:11 +02:00
TERMUX_PKG_SRCURL=https://github.com/asciidoc/asciidoc/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9e52f8578d891beaef25730a92a6e723596ddbd07bfe0d2a56486fcf63a0b983
TERMUX_PKG_DEPENDS="docbook-xsl, python2, xsltproc"
TERMUX_PKG_SUGGESTS="lynx, w3m"
2019-08-13 21:38:11 +02:00
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
2019-08-13 21:38:11 +02:00
}