Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=https://www.kernel.org/doc/man-pages/ |
2 | TERMUX_PKG_DESCRIPTION="Man pages for linux kernel and C library interfaces" | |
0195cf3e | 3 | TERMUX_PKG_DEPENDS="man" |
5e190dd4 | 4 | TERMUX_PKG_VERSION=4.09 |
59f0d218 FF |
5 | TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${TERMUX_PKG_VERSION}.tar.xz |
6 | TERMUX_PKG_EXTRA_MAKE_ARGS="prefix=$TERMUX_PREFIX" | |
7 | # man.7 and mdoc.7 is included with mandoc: | |
5e190dd4 FF |
8 | # getconf man page included with the getconf package: |
9 | TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1 share/man/man8 share/man/man7/man.7 share/man/man7/mdoc.7 share/man/man1p/getconf.1p" | |
59f0d218 FF |
10 | TERMUX_PKG_PLATFORM_INDEPENDENT=true |
11 | TERMUX_PKG_BUILD_IN_SRC=true | |
12 | ||
31e9aad4 FF |
13 | termux_step_pre_configure() { |
14 | # Bundle posix man pages in same package: | |
15 | local _POSIX_TARFILE=man-pages-posix-2013-a.tar.xz | |
16 | if [ ! -f $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE ]; then | |
17 | termux_download https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$_POSIX_TARFILE \ | |
18 | $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE | |
19 | fi | |
20 | mkdir -p $TERMUX_PKG_TMPDIR/man-pages-posix | |
21 | cd $TERMUX_PKG_TMPDIR/man-pages-posix | |
22 | tar xf $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE | |
23 | cd man-pages-posix-2013-a | |
24 | make install | |
59f0d218 | 25 | } |