index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2015-11-13 13:33:23 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-11-23 16:02:32 +1000 |
commit | 663c74150ab4ba6d3adc55b0e3f539557a16e352 (patch) | |
tree | 1fbb2d77e063d2d0515ea4f74626510223082b23 /scripts | |
parent | ef1fb0ef81f7ec78f1a9f45f0d7039cdb6be1f8c (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 16 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index b46c0dd9..d0ebf42c 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -761,10 +761,6 @@ merge_arch_attrs() { source_buildfile() { source_safe "$@" - - if (( !SOURCEONLY )); then - merge_arch_attrs - fi } run_function_safe() { @@ -2004,8 +2000,15 @@ else source_buildfile "$BUILDFILE" fi -# set defaults if they weren't specified in buildfile pkgbase=${pkgbase:-${pkgname[0]}} + +# check the PKGBUILD for some basic requirements +lint_pkgbuild || exit 1 + +if (( !SOURCEONLY )); then + merge_arch_attrs +fi + basever=$(get_full_version) if [[ $BUILDDIR = "$startdir" ]]; then @@ -2033,9 +2036,6 @@ if have_function pkgver; then PKGVERFUNC=1 fi -# check the PKGBUILD for some basic requirements -lint_pkgbuild || exit 1 - # check we have the software required to process the PKGBUILD check_software || exit 1 |