termux-packages/packages/man/build.sh

32 lines
1.2 KiB
Bash
Raw Normal View History

2017-10-27 22:56:18 +02:00
TERMUX_PKG_HOMEPAGE=https://mdocml.bsd.lv/
2015-06-13 01:03:31 +02:00
TERMUX_PKG_DESCRIPTION="Man page viewer from the mandoc toolset"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="BSD 3-Clause"
2018-08-11 19:37:08 +02:00
TERMUX_PKG_VERSION=1.14.4
TERMUX_PKG_SHA256=24eb72103768987dcc63b53d27fdc085796330782f44b3b40c4660b1e1ee9b9c
2017-10-27 22:56:55 +02:00
TERMUX_PKG_SRCURL=http://mdocml.bsd.lv/snapshots/mandoc-${TERMUX_PKG_VERSION}.tar.gz
2017-03-02 16:14:05 +01:00
TERMUX_PKG_DEPENDS="less,libandroid-glob"
2015-06-13 01:03:31 +02:00
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_RM_AFTER_INSTALL="share/examples"
termux_step_pre_configure() {
2015-06-13 01:03:31 +02:00
LDFLAGS+=" -landroid-glob"
echo "PREFIX=\"$TERMUX_PREFIX\"" > configure.local
2017-03-02 16:14:05 +01:00
echo "CC=\"$CC\"" >> configure.local
2015-06-13 01:03:31 +02:00
echo "MANDIR=\"$TERMUX_PREFIX/share/man\"" >> configure.local
2017-03-02 16:14:05 +01:00
echo "CFLAGS=\"$CFLAGS -std=c99 -DNULL=0 $CPPFLAGS\"" >> configure.local
2016-07-17 01:26:07 +02:00
echo "LDFLAGS=\"$LDFLAGS\"" >> configure.local
2017-03-02 16:14:05 +01:00
for HAVING in HAVE_FGETLN HAVE_MMAP HAVE_STRLCAT HAVE_STRLCPY HAVE_SYS_ENDIAN HAVE_ENDIAN HAVE_NTOHL HAVE_NANOSLEEP HAVE_O_DIRECTORY; do
2015-06-13 01:03:31 +02:00
echo "$HAVING=1" >> configure.local
done
echo "HAVE_MANPATH=0" >> configure.local
echo "HAVE_SQLITE3=1" >> configure.local
2015-06-13 01:03:31 +02:00
}
termux_step_create_debscripts() {
echo "interest-noawait $TERMUX_PREFIX/share/man" > triggers
2017-08-15 07:09:08 +02:00
echo "#!$TERMUX_PREFIX/bin/sh" >> postinst
echo "makewhatis -Q" >> postinst
2016-08-11 00:14:32 +02:00
echo "exit 0" >> postinst
}