texlive: update to 2018 and update poppler patches to work with 0.64
[termux-packages] / packages / linux-man-pages / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=https://www.kernel.org/doc/man-pages/
2TERMUX_PKG_DESCRIPTION="Man pages for linux kernel and C library interfaces"
73854545
FF
3TERMUX_PKG_VERSION=4.14
4TERMUX_PKG_SHA256=3052b87898c313c089848a913e5cf44a0565cc4d21d94119ef6586d971f5c971
59f0d218 5TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${TERMUX_PKG_VERSION}.tar.xz
4f30d9d9 6TERMUX_PKG_DEPENDS="man"
59f0d218
FF
7TERMUX_PKG_EXTRA_MAKE_ARGS="prefix=$TERMUX_PREFIX"
8# man.7 and mdoc.7 is included with mandoc:
5e190dd4
FF
9# getconf man page included with the getconf package:
10TERMUX_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
11TERMUX_PKG_PLATFORM_INDEPENDENT=true
12TERMUX_PKG_BUILD_IN_SRC=true
8f864d4c
W
13# Problems with changing permissions of non-built files
14TERMUX_MAKE_PROCESSSES=1
59f0d218 15
31e9aad4
FF
16termux_step_pre_configure() {
17 # Bundle posix man pages in same package:
18 local _POSIX_TARFILE=man-pages-posix-2013-a.tar.xz
19 if [ ! -f $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE ]; then
f8cce0c0
FF
20 termux_download \
21 https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$_POSIX_TARFILE \
22 $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE \
23 19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808
24
31e9aad4
FF
25 fi
26 mkdir -p $TERMUX_PKG_TMPDIR/man-pages-posix
27 cd $TERMUX_PKG_TMPDIR/man-pages-posix
28 tar xf $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE
29 cd man-pages-posix-2013-a
30 make install
59f0d218 31}