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/libjpeg-turbo.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/libjpeg-turbo.recipe')
-rw-r--r-- | recipes/libjpeg-turbo.recipe | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/recipes/libjpeg-turbo.recipe b/recipes/libjpeg-turbo.recipe index 649abe97..2fbff948 100644 --- a/recipes/libjpeg-turbo.recipe +++ b/recipes/libjpeg-turbo.recipe @@ -6,12 +6,13 @@ class Recipe(recipe.Recipe): version = '1.5.3' licenses = [License.BSD_like] stype = SourceType.TARBALL + url = 'sf://.tar.gz' + tarball_checksum = 'b24890e2bb46e12e72a79f7e965f409f4e16466d00e1dd15d93d73ee6b592523' + configure_tpl = "%(config-sh)s --prefix=%(prefix)s "\ "--libdir=%(libdir)s" configure_options = " --with-jpeg8" autoreconf = True - url = 'https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-%(version)s.tar.gz' - tarball_checksum = 'b24890e2bb46e12e72a79f7e965f409f4e16466d00e1dd15d93d73ee6b592523' patches = [] files_libs = ['libjpeg','libturbojpeg'] |