helper_aur.zsh 565 B

1234567891011121314151617181920
  1. #
  2. # AUR aliases
  3. #
  4. # download and build AUR package
  5. aurb() {
  6. git clone https://aur.archlinux.org/${1}.git && cd ${1} && makepkg --clean --install --syncdeps
  7. }
  8. # only download aur package; do not build
  9. aurd() {
  10. git clone https://aur.archlinux.org/${1}.git
  11. }
  12. # remove old package, rebuild, and install.
  13. #NOTE: this is will remove any unstashed/uncommitted changes.
  14. # due to how makepkg will update the PKGBUILD, a git pull alone will not suffice.
  15. auru() {
  16. git reset HEAD --hard && git pull && makepkg --clean --force --install --syncdeps --cleanbuild
  17. }