Added variable for major version number
# This file is licensed under a 3-clause BSD license; see LICENSE.txt.
{% set version = '0.6.12' %}
+{% set version_major = version.rsplit('.', 1)[0] %}
package:
name: libcroco
version: {{ version }}
source:
- url: http://ftp.gnome.org/pub/gnome/sources/libcroco/{{ version | rsplit(".", 1)[0] }}/libcroco-{{ version }}.tar.xz
+ url: http://ftp.gnome.org/pub/gnome/sources/libcroco/{{ version_major }}/libcroco-{{ version }}.tar.xz
sha256: 132b528a948586b0dfa05d7e9e059901bca5a3be675b6071a90a90b81ae5a056
build:
@@ -26,9 +27,9 @@ requirements:
- libxml2 >=2.9
tests:
- - test -f $PREFIX/lib/libcroco-{{ version | rsplit(".", 1)[0] }}.a # [linux]
- - test -f $PREFIX/lib/libcroco-{{ version | rsplit(".", 1)[0] }}.dylib # [osx]
- - test -f $PREFIX/lib/libcroco-{{ version | rsplit(".", 1)[0] }}.la
+ - test -f $PREFIX/lib/libcroco-{{ version_major }}.a # [linux]
+ - test -f $PREFIX/lib/libcroco-{{ version_major }}.dylib # [osx]
+ - test -f $PREFIX/lib/libcroco-{{ version_major }}.la
about:
home: http://www.linuxfromscratch.org/blfs/view/svn/general/libcroco.html
