You are not logged in.

#1 2011-09-06 18:45:14

fiddlinmacx
Member
Registered: 2011-03-02
Posts: 89

Can't get download link to work in PKGBUILD

http://agdinteractive.com/countdl.php?a … ad&game=11 is the download link and it redirects to any number of mirrors. I can't seem to get wget, aria2 or curl to download the actual file.

Any ideas?

Offline

#2 2011-09-06 18:55:00

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Can't get download link to work in PKGBUILD

Works for me. You'll need to tell curl to follow 301/302 redirects (the -L or --location flag). pacman4 uses the following as the DLAGENT for http:

http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u

Also note that you'll need to explicitly name the file in the PKGBUILD, so the source should look something like:

source=("$pkgname-$pkgver.tar.gz::http://agdinteractive.com/countdl.php?action=download&game=11")

Last edited by falconindy (2011-09-06 18:55:32)

Offline

Board footer

Powered by FluxBB