01-remove-localized-manpages.sh (366B)
1# This hook removes localized man(1) files 2 3hook() { 4 local section mandir=${PKGDESTDIR}/usr/share/man 5 6 for section in ${mandir}/*; do 7 if ! [ -d ${section} ]; then 8 continue 9 fi 10 11 case ${section} in 12 ${mandir}/man[0-9n]|${mandir}/man[013][fp]) 13 continue;; 14 ${mandir}/cat[0-9n]|${mandir}/cat[013][fp]) 15 continue;; 16 esac 17 18 rm -rf ${section} 19 done 20}