linux-man-pages: Update from 4.10 to 4.11
[termux-packages] / packages / linux-man-pages / build.sh
1 TERMUX_PKG_HOMEPAGE=https://www.kernel.org/doc/man-pages/
2 TERMUX_PKG_DESCRIPTION="Man pages for linux kernel and C library interfaces"
3 TERMUX_PKG_DEPENDS="man"
4 TERMUX_PKG_VERSION=4.11
5 TERMUX_PKG_SRCURL=https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${TERMUX_PKG_VERSION}.tar.xz
6 TERMUX_PKG_SHA256=adde80495f5efb26d077f4e5309bafdc4859e080b7529263720f7cb5f403f524
7 TERMUX_PKG_EXTRA_MAKE_ARGS="prefix=$TERMUX_PREFIX"
8 # man.7 and mdoc.7 is included with mandoc:
9 # getconf man page included with the getconf package:
10 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"
11 TERMUX_PKG_PLATFORM_INDEPENDENT=true
12 TERMUX_PKG_BUILD_IN_SRC=true
13
14 termux_step_pre_configure() {
15 # Bundle posix man pages in same package:
16 local _POSIX_TARFILE=man-pages-posix-2013-a.tar.xz
17 if [ ! -f $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE ]; then
18 termux_download \
19 https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/$_POSIX_TARFILE \
20 $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE \
21 19633a5c75ff7deab35b1d2c3d5b7748e7bd4ef4ab598b647bb7e7f60b90a808
22
23 fi
24 mkdir -p $TERMUX_PKG_TMPDIR/man-pages-posix
25 cd $TERMUX_PKG_TMPDIR/man-pages-posix
26 tar xf $TERMUX_PKG_CACHEDIR/$_POSIX_TARFILE
27 cd man-pages-posix-2013-a
28 make install
29 }