1
0
Fork 0
mirror of synced 2024-12-26 16:03:21 -05:00
zimfw/modules/pacman/helper_aur.zsh

21 lines
527 B
Bash
Raw Normal View History

2015-12-15 00:12:17 -05:00
#
# AUR aliases
#
# download and build AUR package
aurb() {
2015-12-19 09:48:29 -05:00
git clone https://aur.archlinux.org/${1}.git && cd ${1} && makepkg -sci
2015-12-15 00:12:17 -05:00
}
# only download aur package; do not build
aurd() {
2015-12-19 09:48:29 -05:00
git clone https://aur.archlinux.org/${1}.git
2015-12-15 00:12:17 -05:00
}
# 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 && rm -f *.pkg.tar.xz || true && makepkg -sci
}