makepkg: remove makedepends before installing built package

When running `makepkg -i` it may be necessary to first remove make- and
checkdepends before installing the built package - for example if they
conflict each other. This is the case for wireguard-arch which
makedepends and conflicts wireguard-dkms.

Signed-off-by: Erich Eckner <git@eckner.net>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Erich Eckner 2019-09-12 15:22:03 +02:00 committed by Allan McRae
parent 8e7d425627
commit 095d6332be

View file

@ -822,6 +822,9 @@ create_srcpackage() {
install_package() {
(( ! INSTALL )) && return 0
remove_deps || return $?
RMDEPS=0
if (( ! SPLITPKG )); then
msg "$(gettext "Installing package %s with %s...")" "$pkgname" "$PACMAN -U"
else