hooks/pre-pkg: prohibit /usr/doc, mention /usr/share/doc

This commit is contained in:
maxice8 2018-12-13 10:18:27 -02:00 committed by maxice8
parent f68d10a467
commit 9251941c99
2 changed files with 19 additions and 8 deletions

View file

@ -3,10 +3,6 @@
hook() {
local f lnkat mandir=${PKGDESTDIR}/usr/share/man
if [ -d ${PKGDESTDIR}/usr/man ]; then
msg_error "${pkgver}: /usr/man directory is not allowed, use /usr/share/man.\n"
fi
if [ ! -d $mandir ] ||
[ -z "$(find $mandir -regex '.*\.\(gz\|bz2\)' -print -quit)" ]; then
return 0