You are not logged in.
Hi there.
I recently adopted counter-strike-2d and I notice that Unreal Software's source URLs depends on a connection identification, which can be seen in the download link available in, for example, this file's download page. So, the real URL for me to the file would be
http://www.unrealsoftware.de/get.php?ge … 9355692755
But, of course, this 'cid' is not static, therefore is incorrect to have it in sources array in PKGBUILD.
Does anyone know how can I beat this issue in my PKGBUILD?
Thanks in advance!
Last edited by josephg (2012-05-09 12:04:33)
Offline
Explain what you are doing to the developers, and ask them to consider providing a saner download setup.
If they say no, find something more productive to waste your time on.
Offline
Or put a note explaining that the user must download the source themselves (with a link to the download page). Won't work with helpers like yaourt, but that's no big loss
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Or parse the website to generate the source link. E.g.
$ pkgver=0.1.2.0; echo "http://www.unrealsoftware.de/$(curl -Ss "http://www.unrealsoftware.de/get.php?get=cs2d_${pkgver//./}_win.zip&p=1" \
| grep -o '"get.php[^"]\+"' | cut -d'"' -f2 | sed 's/&/\&/g')"
Last edited by xduugu (2012-05-09 09:12:54)
Offline
I asked in Unreal Software for a static URL and today got 'sorry' as reply by the admin...
Anyway, xduugu's script works. I just had to make it in a function, to hide it from the AUR interface. Otherwise, AUR would print a lot of sources for the end-user, as the web interface doesn't parse well this black magic.
grabcid() {
local file=cs2d_${_ver}_linux.zip
echo "$(curl -Ss "http://www.unrealsoftware.de/get.php?get=${file}&p=1" |
grep -o '"get.php[^"]\+"' | cut -d'"' -f2 | sed 's/&/\&/g')"
}
_cid=$(grabcid)
Problem solved! Thanks guys!
Offline