nix-config/.archlinux/Makefile

30 lines
667 B
Makefile
Raw Normal View History

2018-11-28 00:45:17 +01:00
.PHONY: install
install:
@cd PKGBUILDs/${package} && makepkg -scif --noconfirm
.ONESHELL:
aur:
@mkdir -p .aur && cd .aur
@git clone "https://aur.archlinux.org/${package}.git"
@cd ${package}
@echo "==================================== Viewing ${package}"
@cat PKGBUILD
@echo "===================================="
@echo -n "Press enter to continue, or Ctrl+C to quit. " && read
@makepkg -sc
@sudo pacman -U *.pkg.tar.xz
2018-11-28 00:45:17 +01:00
.PHONY: update-keys
update-keys:
@sudo pacman-key --populate
@sudo pacman-key --refresh-keys
.PHONY: clean
clean:
@rm -fv **/*.pkg.tar.xz
@rm -fv **/*.xpi
@rm -fv **/*.tar.gz
@rm -fv **/*.tar.bz2
@rm -fv **/*.vim
@rm -rfv .aur