1
0
Fork 0
mirror of synced 2024-06-01 06:41:12 -04:00
zimfw/modules/pacman/helper_aur.zsh
Matt Hamilton 1801faf39c [pacman] keep old packages for auru
The choice to remove these packages should be up to the administrator.
Having an old -git package around after experiencing an upstream issue
is always handy.
2016-12-01 23:50:37 -08:00

21 lines
565 B
Bash

#
# AUR aliases
#
# download and build AUR package
aurb() {
git clone https://aur.archlinux.org/${1}.git && cd ${1} && makepkg --clean --install --syncdeps
}
# only download aur package; do not build
aurd() {
git clone https://aur.archlinux.org/${1}.git
}
# remove old package, rebuild, and install.
#NOTE: this is will remove any unstashed/uncommitted changes.
# due to how makepkg will update the PKGBUILD, a git pull alone will not suffice.
auru() {
git reset HEAD --hard && git pull && makepkg --clean --force --install --syncdeps --cleanbuild
}