#!/usr/bin/env bash buildroot="/tmp/build-$(id -u)" # Ask for user passwort once, see sudo(8). sudo -v # Make sure we can even build packages on arch linux. sudo pacman -S --needed --noconfirm base-devel curl mkdir -p ${buildroot} mkdir ${buildroot}/cower ${buildroot}/pacaur cd ${buildroot}/cower curl -L https://aur.archlinux.org/packages/co/cower/PKGBUILD > PKGBUILD makepkg --syncdeps --skippgpcheck --install cd ${buildroot}/pacaur curl -L https://aur.archlinux.org/packages/pa/pacaur/PKGBUILD > PKGBUILD makepkg --syncdeps --skippgpcheck --install