Skip to content

Commit

Permalink
AUR4 patch from Xavion
Browse files Browse the repository at this point in the history
  • Loading branch information
keenerd committed Aug 8, 2015
1 parent dc83901 commit ed928f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packer
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pacmanconf='/etc/pacman.conf'

RPCURL="https://aur.archlinux.org/rpc.php?type"
PKGURL="https://aur.archlinux.org"
PKGBURL="https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h"

if [[ -t 1 && ! $COLOR = "NO" ]]; then
COLOR1='\e[1;39m'
Expand Down Expand Up @@ -241,8 +242,7 @@ pkglink() {
# downloads pkgbuild ($1), edits if $2 is set
pkginfo() {
if ! [[ -f "$tmpdir/$1.PKGBUILD" ]]; then
pkgpath=$(pkglink $1)
curl -Lfs "${pkgpath%/*}/PKGBUILD" > "$tmpdir/$1.PKGBUILD"
curl -Lfs "${PKGBURL}=${1}" > "$tmpdir/$1.PKGBUILD"
if [[ $2 ]]; then
# rename for syntax highlighting
cp "$tmpdir/$1.PKGBUILD" "$tmpdir/PKGBUILD"
Expand Down

0 comments on commit ed928f8

Please sign in to comment.