You are not logged in.

#1 2010-07-15 03:08:30

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

[SOLVED]How to get the donwload link of a source from sourceforge?

I am trying to update a package that I maintain in AUR but I just can't seem to find the link location of the source tarball. When I hover over the .tgz or right-click and "Copy Link Location", it gives me this

http://downloads.sourceforge.net/project/wumwum/wumwum/wumwum-0.9/wumwum-0.9.tgz/download

But when the file is downloaded by using makdpkg its not the correct file. I checked it with file

file wumwum-0.9.tgz
wumwum-0.9.tgz: HTML document text

which is understandable since SourceForge takes you to another page which auto-starts your download.

so I tried to find a way to get the link for the tgz file itself and on the page where the file gets auto-downloaded, I checked the "direct link" and the mirror which gives me this

http://downloads.sourceforge.net/project/wumwum/wumwum/wumwum-0.9/wumwum-0.9.tgz?use_mirror=hivelocity&ts=1279163146

But that would hardcode the mirror in the PKGBUILD and I don't remember using mirrors in any of my earlier aur packages. Is there another way I can find out the download link of a source tarball?

Last edited by Inxsible (2010-07-15 03:31:20)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#2 2010-07-15 03:12:31

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

Re: [SOLVED]How to get the donwload link of a source from sourceforge?

Shamelessly scraped from 'newpkg --sf foobar':

source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)

Offline

#3 2010-07-15 03:31:08

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]How to get the donwload link of a source from sourceforge?

thanks falconindy. appreciate it


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB