Skip to content

Instantly share code, notes, and snippets.

@okb1100
Last active August 8, 2022 18:24
Show Gist options
  • Save okb1100/a19e8f40613e24c221387949460d5919 to your computer and use it in GitHub Desktop.
Save okb1100/a19e8f40613e24c221387949460d5919 to your computer and use it in GitHub Desktop.
#linux-stuff [aur build script]
#!/bin/bash
# This script clones the git repo of the aur package
# Then executes makepkg -sri. Simple.
if [ -z "$1" ]; then
echo "Usage: ./aur.sh <pkgname>";
exit 2;
fi
cd /tmp/;
git clone https://aur.archlinux.org/$1.git;
cd $1;
makepkg -sri;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment