Created
September 9, 2020 13:16
-
-
Save cirrusUK/10a08fdd5d8f7d57bcaa26d81a0f26d1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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