2011-07-28 17:53:48 +00:00
|
|
|
# Convenience targets for building and installing Arch packages
|
|
|
|
# prior to committing changes to git.
|
|
|
|
|
2011-08-10 17:20:33 +00:00
|
|
|
PKGNAME=salt
|
|
|
|
|
2011-07-28 17:53:48 +00:00
|
|
|
local:
|
2011-08-08 16:47:48 +00:00
|
|
|
-rm -rf ../../build
|
2011-08-10 17:20:33 +00:00
|
|
|
-rm $(PKGNAME)-*.pkg.tar.xz
|
2011-08-08 16:47:48 +00:00
|
|
|
-rm -rf pkg
|
|
|
|
if [ "$$(id -u)" -eq 0 ]; \
|
|
|
|
then \
|
|
|
|
makepkg -f -p PKGBUILD-local --asroot; \
|
|
|
|
else \
|
|
|
|
makepkg -f -p PKGBUILD-local; \
|
|
|
|
fi
|
2011-07-28 17:53:48 +00:00
|
|
|
rm -rf pkg
|
2011-08-08 16:47:48 +00:00
|
|
|
-rm -rf ../../build
|
2011-07-28 17:53:48 +00:00
|
|
|
|
|
|
|
install: local
|
2011-08-10 17:20:33 +00:00
|
|
|
-for script in /etc/rc.d/salt*; \
|
|
|
|
do \
|
|
|
|
"$$script" stop; \
|
|
|
|
done
|
|
|
|
-yes | pacman -R $(PKGNAME)
|
|
|
|
yes | pacman -U $(PKGNAME)-*.pkg.tar.xz
|