Skip to content

Commit

Permalink
aurdown: new aur4 url
Browse files Browse the repository at this point in the history
  • Loading branch information
seblu committed Aug 24, 2015
1 parent 47bf19c commit 3ebc61a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aurdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

AUR_URL='https://aur.archlinux.org/cgit/aur.git/snapshot'

(( $# < 1 )) && echo "usage: ${0##*/} <pkgsource> [pkgsource]..." >&2 && exit 1

umask 0022

for pkg; do
[[ -e "$pkg.tar.gz" ]] && echo "$pkg.tar.gz already exists. skipped!" >&2 && continue
wget "http://aur.archlinux.org/packages/${pkg:0:2}/$pkg/$pkg.tar.gz" || continue
wget "$AUR_URL/$pkg.tar.gz" || continue
tar -xvv --no-same-owner --no-same-permissions -f "$pkg.tar.gz"
(( $UID == 0 )) && chown -R nobody:nobody "$pkg"
done
Expand Down

0 comments on commit 3ebc61a

Please sign in to comment.