This set of patches changes makepkg's behavior so that $pkgdirbase is not deleted before build(). Instead, only relevant $pkgdir's are deleted just before package() is run. The "symlink to a spacious drive" change is no longer needed thanks to this.
The main goal is to work around the issue with makepkg-mingw. Its second run (for mingw32) currently deletes $pkgdir of the first run (for mingw64), which is both unexpected and annoying.
I suppose one or two PKGBUILD's will break because of $pkgdir is not available in build(), but they need to be fixed anyway.
The change has not been tested yet, but if you are willing to accept this change, I will test it for you.
This set of patches changes
makepkg
's behavior so that$pkgdirbase
is not deleted beforebuild()
. Instead, only relevant$pkgdir
's are deleted just beforepackage()
is run. The "symlink to a spacious drive" change is no longer needed thanks to this.The main goal is to work around the issue with
makepkg-mingw
. Its second run (formingw32
) currently deletes$pkgdir
of the first run (formingw64
), which is both unexpected and annoying.I suppose one or two
PKGBUILD
's will break because of$pkgdir
is not available inbuild()
, but they need to be fixed anyway.The change has not been tested yet, but if you are willing to accept this change, I will test it for you.