Created
January 28, 2018 17:45
-
-
Save cirrusUK/f5a686520f3c7e9abad5a269a6121774 to your computer and use it in GitHub Desktop.
# install AUR packages with cower
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
#!/bin/sh | |
# install AUR packages with cower | |
cd $HOME/build/aur && cower -d "$1" | |
builddir="$_" | |
cd "$builddir" && ${EDITOR:-nano} PKGBUILD | |
makepkg -sirc && cd - &>/dev/null | |
read -p "Remove Build directory? [Y/n]? " yn | |
if [ "$yn" = "y" ]; then | |
printf "\n%s\n" "Removing build directory..." | |
rm -rf "$builddir" | |
else | |
printf "%s\n" "Build completed." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment