From 3429d61c4b170cada165cf583f79656cd02113d4 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 25 May 2018 23:22:17 -0300 Subject: [PATCH 1/2] aur.sh This shortcut will download an AUR repository get, makepkg and install, with all the dependencies. Last, but not least, it will generate a small notification. --- Arch-Manjaro/aur.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Arch-Manjaro/aur.sh diff --git a/Arch-Manjaro/aur.sh b/Arch-Manjaro/aur.sh new file mode 100644 index 0000000..4e306d0 --- /dev/null +++ b/Arch-Manjaro/aur.sh @@ -0,0 +1,6 @@ +sudo echo +cd ~/Downloads +git clone https://aur.archlinux.org/"$1".git +cd "$1" +sudo yes | makepkg -si && cd ..; rm -rf ""$1"" +notify-send """$1"" installed!" From e714a9e3dfe502f735165eac5d6c272b4a322ca4 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Sun, 27 May 2018 16:53:00 -0300 Subject: [PATCH 2/2] Update README.md Including aur.sh explanation. --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bdc0ea..e409db2 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# linuxShortcuts \ No newline at end of file +# linuxShortcuts + +## Arch-Manjaro +### Aur.sh +This is not an automated script, but just a shorcut to `git clone` inside de Download folder, `makepkg -si` and delete the created structure. + +**Recommended**: include in your `~/.bashrc` the following line: `alias aur='source ~/aur.sh'` + +**Usage**: find your package on aur website and just type `aur name-of-package`. + +**Example**: for `visual-studio-code-bin` just type `aur visual-studio-code-bin`. It will ask for your root password and it will install it with all dependencies.