dotfiles/scripts/aur

13 lines
232 B
Text
Raw Normal View History

2024-11-30 21:52:04 +01:00
#!/bin/sh
case $1 in
install|in|i)
cd ~/.aur
[[ ! -d ~/.aur/$2 ]] && git clone https://aur.archlinux.org/$2.git
cd ~/.aur/$2
makepkg -si ;;
*) curl https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=$1 ;;
esac