2014-09-22 13:53:38 +00:00
|
|
|
# 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
|
2014-09-23 15:43:11 +00:00
|
|
|
${mandir}/man[0-9n]|${mandir}/man[013][fp])
|
|
|
|
continue;;
|
|
|
|
${mandir}/cat[0-9n]|${mandir}/cat[013][fp])
|
2014-09-22 13:53:38 +00:00
|
|
|
continue;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
rm -rf ${section}
|
|
|
|
done
|
|
|
|
}
|