new hook: post-install/01-remove-localized-manpages.sh
This commit is contained in:
parent
73aa3ce87a
commit
1bcb1ec77d
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue