9 lines
165 B
Bash
Executable file
9 lines
165 B
Bash
Executable file
#!/bin/sh -e
|
|
case "$1" in
|
|
(*://*) url=$1;;
|
|
(*) url=https://aur.archlinux.org/$1.git;;
|
|
esac
|
|
cd "$(mktemp -d)"
|
|
git clone "$url"
|
|
cd $(basename "${1%.git}")
|
|
makepkg -si
|