mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 03:40:57 +01:00
15047e15e6
This is a very simple AUR helper. Usage: make aur package=<package>
30 lines
667 B
Makefile
30 lines
667 B
Makefile
.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
|
|
|
|
.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
|