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!
]]>$ 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')"
If they say no, find something more productive to waste your time on.
]]>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!
]]>