manpages: Remove entries for aio facility

* Also exclude entries for <monetary.h> and pthread_cancel

* Include intro entry for each section
This commit is contained in:
Tee KOBAYASHI 2022-04-24 20:53:15 +09:00 committed by xtkoba
parent 72ec46d78e
commit 67689bc51e
1 changed files with 23 additions and 4 deletions

View File

@ -4,6 +4,7 @@ TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=(5.13 TERMUX_PKG_VERSION=(5.13
2017) 2017)
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=(614dae3efe7dfd480986763a2a2a8179215032a5a4526c0be5e899a25f096b8b TERMUX_PKG_SHA256=(614dae3efe7dfd480986763a2a2a8179215032a5a4526c0be5e899a25f096b8b
ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3) ce67bb25b5048b20dad772e405a83f4bc70faf051afa289361c81f9660318bc3)
TERMUX_PKG_SRCURL=(https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=(https://www.kernel.org/pub/linux/docs/man-pages/man-pages-${TERMUX_PKG_VERSION}.tar.xz
@ -18,19 +19,27 @@ TERMUX_PKG_BUILD_IN_SRC=true
# Problems with changing permissions of non-built files # Problems with changing permissions of non-built files
TERMUX_MAKE_PROCESSSES=1 TERMUX_MAKE_PROCESSSES=1
# Do not remove an entire section; intro should always be included.
# Bionic libc does not provide <aio.h>, <monetary.h> or pthread_cancel.
# man.7 and mdoc.7 is included with mandoc: # man.7 and mdoc.7 is included with mandoc:
# getconf man page included with the getconf package: # getconf man page included with the getconf package:
# iconv-related manpages included with libiconv package: # iconv-related manpages included with libiconv package:
TERMUX_PKG_RM_AFTER_INSTALL=" TERMUX_PKG_RM_AFTER_INSTALL="
share/man/man1 share/man/man0p/aio.h.0p
share/man/man0p/monetary.h.0p
share/man/man1p/getconf.1p
share/man/man3/aio_*
share/man/man3/aiocb.3
share/man/man3/iconv.3 share/man/man3/iconv.3
share/man/man3/iconv_close.3 share/man/man3/iconv_close.3
share/man/man3/iconv_open.3 share/man/man3/iconv_open.3
share/man/man8 share/man/man3/pthread_*cancel*.3
share/man/man3p/aio_*
share/man/man3p/pthread_*cancel*.3p
share/man/man7/aio.7
share/man/man7/man.7 share/man/man7/man.7
share/man/man7/mdoc.7 share/man/man7/mdoc.7
share/man/man1p/getconf.1p" "
termux_step_pre_configure() { termux_step_pre_configure() {
export TERMUX_MAKE_PROCESSES=1 export TERMUX_MAKE_PROCESSES=1
@ -39,3 +48,13 @@ termux_step_pre_configure() {
cd man-pages-posix-${TERMUX_PKG_VERSION[1]} cd man-pages-posix-${TERMUX_PKG_VERSION[1]}
make install make install
} }
termux_step_post_massage() {
local s
for s in 1 8; do
pushd share/man/man${s}
find . -mindepth 1 -maxdepth 1 ! -name "intro.${s}.gz" \
-exec rm -rf "{}" \;
popd
done
}