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"
2017-08-18 21:05:24 +02:00
TERMUX_PKG_VERSION=1.14.3
2017-09-14 13:34:58 +02:00
TERMUX_PKG_REVISION=1
2017-08-18 21:05:24 +02:00
TERMUX_PKG_SHA256=0b0c8f67958c1569ead4b690680c337984b879dfd2ad4648d96924332fd99528
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
}
2016-08-11 00:14:32 +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
}