diff --git a/scripts/libmakepkg/lint_package/build_references.sh.in b/scripts/libmakepkg/lint_package/build_references.sh.in index 9b7ffab18..a5fc45500 100644 --- a/scripts/libmakepkg/lint_package/build_references.sh.in +++ b/scripts/libmakepkg/lint_package/build_references.sh.in @@ -37,5 +37,13 @@ warn_build_references() { printf '%s\n' "${refs[@]#"$pkgdir/"}" >&2 fi done + + # Check for Windows-style MSYS2 root path + if find "${pkgdir}" -type f -print0 | xargs -0 grep -iFqI "$(cygpath -m /)" ; then + warning "$(gettext "Package contains reference to %s")" "\$(cygpath -m /)" + fi + if find "${pkgdir}" -type f -print0 | xargs -0 grep -iFqI "$(cygpath -w /)" ; then + warning "$(gettext "Package contains reference to %s")" "\$(cygpath -w /)" + fi return 0 }