hooks: abort if l10n files found in /usr/lib

This commit is contained in:
Đoàn Trần Công Danh 2020-12-30 23:32:47 +07:00
parent c78b0d77cd
commit 04825ced01

View file

@ -68,6 +68,12 @@ hook() {
fi
done
# Check for l10n files in usr/lib/locale
if [ -d ${PKGDESTDIR}/usr/lib/locale ]; then
msg_red "${pkgver}: /usr/lib/locale is forbidden, use /usr/share/locale!\n"
error=1
fi
# Check for bash completions in etc/bash_completion.d
# should be on usr/share/bash-completion/completions
if [ -d ${PKGDESTDIR}/etc/bash_completion.d ]; then