15 lines
230 B
Bash
15 lines
230 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
pkg="$1"
|
|
|
|
dir="$(mktemp -d "aur.$pkg.XXXXXXXX")"
|
|
|
|
git clone --branch "$pkg" --single-branch https://github.com/archlinux/aur.git "$dir"
|
|
|
|
pushd "$dir" || exit 1
|
|
|
|
makepkg -sri
|
|
|
|
popd || exit 1
|