diff --git a/projects/debian.org/iso-codes/package.yml b/projects/debian.org/iso-codes/package.yml new file mode 100644 index 00000000..be390c30 --- /dev/null +++ b/projects/debian.org/iso-codes/package.yml @@ -0,0 +1,32 @@ +distributable: + url: https://deb.debian.org/debian/pool/main/i/iso-codes/iso-codes_{{version}}.orig.tar.xz + strip-components: 1 +versions: + url: https://deb.debian.org/debian/pool/main/i/iso-codes/ + match: /iso-codes_\d+\.\d+\.\d+\.orig\.tar\.xz/ + strip: + - /^iso-codes_/ + - /\.orig\.tar\.xz/ +dependencies: + gnu.org/gettext: '*' +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + python.org: '*' + script: + - ./configure $CONFIGURE_ARGS + - make --jobs {{hw.concurrency}} + - make --jobs {{hw.concurrency}} install + env: + CONFIGURE_ARGS: + - --disable-debug + - --disable-dependency-tracking + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: + - pkg-config --modversion iso-codes | grep {{version}} + - pkg-config --variable=domains iso-codes | grep "iso_639-2 iso_639-3 iso_639-5 iso_3166-1 iso_3166-2 iso_3166-3 iso_4217 iso_15924"