Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Created January 28, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirrusUK/f5a686520f3c7e9abad5a269a6121774 to your computer and use it in GitHub Desktop.
Save cirrusUK/f5a686520f3c7e9abad5a269a6121774 to your computer and use it in GitHub Desktop.
# install AUR packages with cower
#!/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