2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://mdocml.bsd.lv/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Man page viewer from the mandoc toolset"
|
2017-03-02 16:14:05 +01:00
|
|
|
TERMUX_PKG_VERSION=1.14.1
|
2016-12-23 21:21:57 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/mdocml-${TERMUX_PKG_VERSION}.tar.xz
|
2017-03-02 16:14:05 +01:00
|
|
|
TERMUX_PKG_SHA256=d1effbaf964dc62988c5e0056d285e486c156b95f53805f2ffef5f050e5040b9
|
|
|
|
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"
|
|
|
|
|
2017-01-07 06:17:42 +01:00
|
|
|
termux_step_pre_configure () {
|
2015-06-13 01:03:31 +02:00
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
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
|
2016-08-06 23:31:57 +02:00
|
|
|
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 $TERMUX_PREFIX/share/man" > triggers
|
|
|
|
|
|
|
|
echo "makewhatis -Q" > postinst
|
|
|
|
echo "exit 0" >> postinst
|
|
|
|
}
|