From 2bbf4298d6c5e30a8f6ff9372c9222f66fb5b196 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Sun, 9 Dec 2018 17:01:45 -0300 Subject: [PATCH] recipes: data/iso-codes: added version 4.1 --- recipes/data/iso-codes/recipe | 66 +++++++++++++++++++++++++++++++++++++ sources/SOURCELIST.txt | 1 + sources/iso-codes-4.1.tar.xz.sha256 | 1 + 3 files changed, 68 insertions(+) create mode 100644 recipes/data/iso-codes/recipe create mode 100644 sources/iso-codes-4.1.tar.xz.sha256 diff --git a/recipes/data/iso-codes/recipe b/recipes/data/iso-codes/recipe new file mode 100644 index 00000000..731c9a2d --- /dev/null +++ b/recipes/data/iso-codes/recipe @@ -0,0 +1,66 @@ +# Build recipe for iso-codes. +# +# Copyright (C) 2018 Matias Fonzo, . +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +program=iso-codes +version=4.1 +arch=noarch +release=1 + +# Set 'outdir' for a nice and well-organized output directory +outdir="${outdir}/${arch}/data" + +tarname=${program}-${version}.tar.xz + +# Remote source(s) +fetch=http://anduin.linuxfromscratch.org/BLFS/iso-codes/$tarname + +description=" +ISO country, language, script and currency codes and translations. + +This package provides lists of various ISO standards (e.g. country, +language, language scripts, and currency names) in one place, rather +than repeated in many programs throughout the system. +" + +homepage=http://salsa.debian.org/iso-codes-team/iso-codes +license=GPLv2+ + +docs="COPYING ChangeLog.md README.md TODO" +docsdir="${docdir}/${program}-${version}" + +build() +{ + set -e + + unpack "${tardir}/$tarname" + + cd "$srcdir" + + # Set sane permissions + chmod -R u+w,go-w,a+rX-s . + + ./configure $configure_args \ + --libdir=/usr/lib${libSuffix} \ + --build="$(cc -dumpmachine)" + + make -j${jobs} V=1 + make -j${jobs} V=1 DESTDIR="$destdir" install-strip + + # Copy documentation + mkdir -p "${destdir}${docsdir}" + cp -p $docs "${destdir}${docsdir}" +} + diff --git a/sources/SOURCELIST.txt b/sources/SOURCELIST.txt index f38fc61f..15c9c416 100644 --- a/sources/SOURCELIST.txt +++ b/sources/SOURCELIST.txt @@ -463,3 +463,4 @@ http://github.com/p11-glue/p11-kit/releases/download/0.23.14/p11-kit-0.23.14.tar http://ftp.gnome.org/pub/gnome/sources/vala/0.42/vala-0.42.3.tar.xz http://ftp.acc.umu.se/pub/gnome/sources/gcr/3.28/gcr-3.28.0.tar.xz http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz +http://anduin.linuxfromscratch.org/BLFS/iso-codes/iso-codes-4.1.tar.xz diff --git a/sources/iso-codes-4.1.tar.xz.sha256 b/sources/iso-codes-4.1.tar.xz.sha256 new file mode 100644 index 00000000..dc9316ec --- /dev/null +++ b/sources/iso-codes-4.1.tar.xz.sha256 @@ -0,0 +1 @@ +67117fb76f32c8fb5e37d2d60bce238f1f8e865cc7b569a57cbc3017ca15488a iso-codes-4.1.tar.xz -- 2.11.4.GIT