diff --git a/pkg/arch/Makefile b/pkg/arch/Makefile index def91d9..8a93367 100644 --- a/pkg/arch/Makefile +++ b/pkg/arch/Makefile @@ -2,9 +2,13 @@ # prior to committing changes to git. local: - -rm -rf ../../build - -rm butter-local*.tar.xz - makepkg -f -p PKGBUILD-local --asroot + -rm -rf ../../build pkg butter-*.pkg.tar.xz + if [ "$$(id -u)" -eq 0 ]; \ + then \ + makepkg -f -p PKGBUILD-local --asroot; \ + else \ + makepkg -f -p PKGBUILD-local; \ + fi -rm -rf pkg ../../build install: local