Subject: bug#22242: Help constructing source URL

From: Ricardo Wurmus <[email-masked]>
Date: Sat, 26 Dec 2015 08:46:38 +0100

Leo Famulari <[email-masked]> writes:

> Our tinyproxy package needs to be updated to use the current source URL.
>
> The current URL is:
> https://download.banu.com/tinyproxy/1.8/tinyproxy-1.8.3.tar.gz
>
> I don't know how to abstract the "1.8" directory to account for other
> versions.

How about this:

(string-append "https://download.banu.com/tinyproxy/"
               (version-major+minor version)
               "/tinyproxy-" version ".tar.gz")

~~ Ricardo