Files
termux-packages/packages/lowdown/build.sh
termux-pacman-bot 686c245ece bump(main/lowdown): 1.2.0
This commit has been automatically submitted by Github Actions.
2024-10-31 06:41:12 +00:00

26 lines
1.0 KiB
Bash

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.2.0"
TERMUX_PKG_SRCURL="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=4a853e1e49bca6ef532d075228b84585a29d88bbf4a7d26a70c5d4df260b9a3f
#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"
}