[[ -n "$LIBMAKEPKG_LINT_PACKAGE_SH" ]] && return
LIBMAKEPKG_LINT_PACKAGE_SH=1
MAKEPKG_LIBRARY=${MAKEPKG_LIBRARY:-'@libmakepkgdir@'}
source "$MAKEPKG_LIBRARY/util/message.sh"
source "$MAKEPKG_LIBRARY/util/util.sh"
declare -a lint_package_functions
for lib in "$MAKEPKG_LIBRARY/lint_package/"*.sh; do
source "$lib"
done
readonly -a lint_package_functions
lint_package() {
cd_safe "$pkgdir"
msg "$(gettext "Checking for packaging issues...")"
local ret=0
for func in ${lint_package_functions[@]}; do
$func || ret=1
done
return $ret
}