diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-24 06:50:20 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-24 07:16:04 +0530 |
commit | cb104a00debce605f4e362edf58c728577ca921e (patch) | |
tree | 0e754dd87711fe8fd6d19fd8627205643c48606f /recipes/gobject-introspection.recipe | |
parent | cfaf102f6d7a28caddacbf8b98b71b1080754794 (diff) |
Implement source url templating for recipes
GNOME, GNU, Savannah, Xiph, and SourceForge source URLs now use
templates. More templates can be added in the future. Currently, they
can be one of the following forms:
scheme://
This will download a file called %(name)s-%(version)s.tar.xz from the
canonical place on the specified server. `scheme` can be: gnome, sf,
gnu, savannah.
scheme://.tar.gz
For using the template but with the specified file extension instead
of .tar.xz
scheme://some/path/to/name-version.tar.xz
For using the template only for the mirror domain and common sources
path.
https://bugzilla.gnome.org/show_bug.cgi?id=797330
Diffstat (limited to 'recipes/gobject-introspection.recipe')
-rw-r--r-- | recipes/gobject-introspection.recipe | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/recipes/gobject-introspection.recipe b/recipes/gobject-introspection.recipe index f83c9214..11758bfa 100644 --- a/recipes/gobject-introspection.recipe +++ b/recipes/gobject-introspection.recipe @@ -3,12 +3,10 @@ import sys class Recipe(recipe.Recipe): - name = 'gobject-introspection' version = '1.54.1' stype = SourceType.TARBALL - maj_ver = '.'.join(version.split('.')[0:2]) - url = 'https://download.gnome.org/sources/{0}/{1}/{0}-{2}.tar.xz'.format(name, maj_ver, version) + url = 'gnome://' tarball_checksum = 'b88ded5e5f064ab58a93aadecd6d58db2ec9d970648534c63807d4f9a7bb877e' licenses = [License.GPLv2Plus] autoreconf = True |