diff --git a/common/hooks/post-install/01-remove-localized-manpages.sh b/common/hooks/post-install/01-remove-localized-manpages.sh new file mode 100644 index 00000000000..af487d473fc --- /dev/null +++ b/common/hooks/post-install/01-remove-localized-manpages.sh @@ -0,0 +1,18 @@ +# This hook removes localized man(1) files + +hook() { + local section mandir=${PKGDESTDIR}/usr/share/man + + for section in ${mandir}/*; do + if ! [ -d ${section} ]; then + continue + fi + + case ${section} in + ${mandir}/man?) + continue;; + esac + + rm -rf ${section} + done +}