add(main): new package lowdown

what: fork of hoedown from bsd.lv, has different underlying implementation, plus man(7)/latex output that hoedown does not have

regress check run w/o error in local build
This commit is contained in:
anon 2022-09-29 05:18:49 +08:00 committed by Henrik Grimler
parent 3c20ad2489
commit ba758b82bb
No known key found for this signature in database
GPG Key ID: B0076E490B71616B
1 changed files with 25 additions and 0 deletions

25
packages/lowdown/build.sh Normal file
View File

@ -0,0 +1,25 @@
TERMUX_PKG_HOMEPAGE="https://kristaps.bsd.lv/lowdown"
TERMUX_PKG_DESCRIPTION="Markdown utilities and library (fork of hoedown -> sundown -> libsoldout)"
TERMUX_PKG_LICENSE="ISC"
TERMUX_PKG_LICENSE_FILE="LICENSE.md"
TERMUX_PKG_MAINTAINER="@flosnvjx"
TERMUX_PKG_VERSION="1.0.0"
TERMUX_PKG_SRCURL="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=a7c9dbbd40e3e9d9296ff6ef6ac54fec83b1abe54db7b6113cd9c0f692a20c13
#TERMUX_PKG_BUILD_DEPENDS="libseccomp" ## it is merely a checkdepends for now and we dont run check during build
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_MAKE_INSTALL_TARGET="install install_libs" ## add "regress" target if one wanna run check
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_METHOD=repology
termux_step_configure() {
## avoid hard-linking during make
sed -Ee 's%^([\t ]*ln) -f (lowdown lowdown-diff)$%\1 -srf \2%' -i Makefile
## not an autoconf script
./configure \
LDFLAGS="$LDFLAGS" \
CPPFLAGS="$CPPFLAGS" \
PREFIX="$TERMUX_PREFIX" \
MANDIR="$TERMUX_PREFIX/share/man"
}