You are not logged in.

#1 2012-10-16 17:51:12

Vryali
Member
From: Columbia, SC
Registered: 2008-09-17
Posts: 21

[SOLVED] Assistance with source line when the target is dynamic.

Citrix's receiver package has been somewhat of a pain to tag a permanent link on, and they recently changed how software downloads work, so I was back to getting constant md5 failures on the file download or a 403 because the link had expired.  I'm guessing that ABS has some better way to do this, but here's my utter hack to get the download link:

hacksource="$(wget -qO- 'http://www.citrix.com/downloads/citrix-receiver/receivers-by-platform/receiver-for-linux-121.html' | awk -F 'rel=\"' '/linuxx86_12.1.0./ {print $2}'| awk -F'"' '{print $1}'| sed '/^$/d')"
source=($hacksource)

This causes the dependancy list in the AUR to be all funky:

Sources
-F
-F
-qO-
/linuxx86_12.1.0./
/^$/d
awk
awk
http://www.citrix.com/downloads/citrix-receiver/receivers-by-platform/receiver-for-linux-121.html
rel=\
sed
{print
{print
|
|

What's the proper way to do this?  Note that this link gets changed every few hours.  This fix works, but is obviously a deviation from standard...

Example of what link it pulls now:

$ $ wget -qO- 'http://www.citrix.com/downloads/citrix-receiver/receivers-by-platform/receiver-for-linux-121.html' | awk -F 'rel=\"' '/linuxx86_12.1.0./ {print $2}'| awk -F'"' '{print $1}'|sed '/^$/d'
http://download.citrix.com.edgesuite.net/7010/linuxx86_12.1.0.203066.tar.gz?__gda__=1350413542_4b1ae4ab2ca4106f9560ce4dfa98b21a

Example of what it pulled a few days before

http://download.citrix.com.edgesuite.net/7010/linuxx86_12.1.0.203066.tar.gz?__gda__=1349203479_276723275888f753801f1a5590414034

Last edited by Vryali (2012-10-17 16:05:16)

Offline

#2 2012-10-17 01:21:55

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [SOLVED] Assistance with source line when the target is dynamic.

Easiest solution would be to keep the source array empty and do the source download/extraction manually in the build function.

Offline

#3 2012-10-17 16:04:44

Vryali
Member
From: Columbia, SC
Registered: 2008-09-17
Posts: 21

Re: [SOLVED] Assistance with source line when the target is dynamic.

Alrighty, I wasn't sure if there was some standard I should be adhering to, changed the citrix package to do that instead.  Thanks and I'll mark the thread solved.

Offline

Board footer

Powered by FluxBB