Last active
December 30, 2017 02:56
-
-
Save ibrokemycomputer/bb7124f46847f35acec36f9ceff3f823 to your computer and use it in GitHub Desktop.
Simple AUR package install function (alias)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To enable, add to your terminal's `rc` or `profile` file (e.g. ~/.bashprofile , ~/.zshrc, etc) | |
# To enable the newly-saved settings without exiting your terminal, run `source FILE_YOU_EDITED` | |
# | |
# Simple little function as an alternative to `yaourt` | |
# Usage: aur-install PACKAGE_NAME DOWNLOAD_DIRECTORY | |
# Example: aur-install google-chrome ~/Downloads | |
# | |
# Note: This currently only handles one package at a time. | |
aur-install() { | |
cd "$2"; | |
wget "https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz"; | |
tar -xzf $1.tar.gz; | |
cd $1; | |
makepkg -s; | |
sudo pacman -U *.pkg.*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment