Remove duplication of version number
-{% set version = "10.5.0" %}
+{% set name = "geant4" %}
+{% set version = "10.05" %}
+{% set patch_version = "0" %}
package:
- name: geant4
- version: {{ version }}
+ name: {{ name|lower }}
+ version: {{ version }}.{{ patch_version }}
+
+source:
+{%- if patch_version == "0" %}
+ url: http://geant4-data.web.cern.ch/geant4-data/releases/{{ name }}.{{ version }}.tar.gz
+{%- else %}
+ url: http://geant4-data.web.cern.ch/geant4-data/releases/{{ name }}.{{ version }}.p{{ patch_version.rjust(2, "0") }}.tar.gz
+{%- endif %}
+ sha256: 2a86499d8327abc68456e5d7fc0303824e5704322291b331857cf4042286656e
+
source:
url: http://cern.ch/geant4-data/releases/geant4.10.05.tar.gz
sha256: 2a86499d8327abc68456e5d7fc0303824e5704322291b331857cf4042286656e
