Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (16 sloc) 429 Bytes
# diff an AUR pkgbuild based on your local copy
if [[ ! -f PKGBUILD ]]; then
printf "error: No PKGBUILD found in working directory.\n"
exit 1
fi >&2
eval $(grep '^pkgname=' PKGBUILD)
if [[ -z $pkgname ]]; then
printf "error: pkgname not found in PKGBUILD\n"
exit 1
fi >&2
diff ${@:--u} PKGBUILD \
<(curl -s "${pkgname:0:2}/$pkgname/PKGBUILD")
Something went wrong with that request. Please try again.