diff --git a/doc/makepkg.8.asciidoc b/doc/makepkg.8.asciidoc index a2ad5279..bb5e2f4a 100644 --- a/doc/makepkg.8.asciidoc +++ b/doc/makepkg.8.asciidoc @@ -297,6 +297,11 @@ Environment Variables **BUILDTOOLVER=**"":: The version of the '$BUILDTOOL' used. +**MAKEPKG_LINT_PKGBUILD=**0 + Setting to 0 disables PKGBUILD linting within makepkg. Useful on systems + with slow bash subshell operations, or on PKGBUILDs with extreme amounts of + package splitting. + Configuration ------------- diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index d5976434..75df3650 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -87,6 +87,8 @@ else fi export SOURCE_DATE_EPOCH +MAKEPKG_LINT_PKGBUILD=${MAKEPKG_LINT_PKGBUILD:-1} + PACMAN_OPTS=() shopt -s extglob @@ -1151,7 +1153,9 @@ fi pkgbase=${pkgbase:-${pkgname[0]}} # check the PKGBUILD for some basic requirements -lint_pkgbuild || exit $E_PKGBUILD_ERROR +if (( MAKEPKG_LINT_PKGBUILD != 0 )); then + lint_pkgbuild || exit $E_PKGBUILD_ERROR +fi if (( !SOURCEONLY && !PRINTSRCINFO )); then merge_arch_attrs