mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-17 19:38:54 +01:00
archlinux: Add make aur target
This is a very simple AUR helper. Usage: make aur package=<package>
This commit is contained in:
parent
1a0304003f
commit
15047e15e6
@ -2,6 +2,18 @@
|
|||||||
install:
|
install:
|
||||||
@cd PKGBUILDs/${package} && makepkg -scif --noconfirm
|
@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
|
.PHONY: update-keys
|
||||||
update-keys:
|
update-keys:
|
||||||
@sudo pacman-key --populate
|
@sudo pacman-key --populate
|
||||||
@ -14,3 +26,4 @@ clean:
|
|||||||
@rm -fv **/*.tar.gz
|
@rm -fv **/*.tar.gz
|
||||||
@rm -fv **/*.tar.bz2
|
@rm -fv **/*.tar.bz2
|
||||||
@rm -fv **/*.vim
|
@rm -fv **/*.vim
|
||||||
|
@rm -rfv .aur
|
||||||
|
Loading…
Reference in New Issue
Block a user