recipe 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Build recipe for iso-codes.
  2. #
  3. # Copyright (C) 2018-2019 Matias Fonzo, <selk@dragora.org>.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. program=iso-codes
  17. version=4.4
  18. arch=noarch
  19. release=1
  20. # Set 'outdir' for a nice and well-organized output directory
  21. outdir="${outdir}/${arch}/data"
  22. tarname=${program}-${version}.tar.xz
  23. # Remote source(s)
  24. fetch=http://anduin.linuxfromscratch.org/BLFS/iso-codes/$tarname
  25. description="
  26. ISO country, language, script and currency codes and translations.
  27. This package provides lists of various ISO standards (e.g. country,
  28. language, language scripts, and currency names) in one place, rather
  29. than repeated in many programs throughout the system.
  30. "
  31. homepage=http://salsa.debian.org/iso-codes-team/iso-codes
  32. license=GPLv2+
  33. docs="COPYING ChangeLog.md README.md TODO"
  34. docsdir="${docdir}/${program}-${version}"
  35. build()
  36. {
  37. set -e
  38. unpack "${tardir}/$tarname"
  39. cd "$srcdir"
  40. # Set sane permissions
  41. chmod -R u+w,go-w,a+rX-s .
  42. ./configure $configure_args \
  43. --libdir=/usr/lib${libSuffix} \
  44. --build="$(cc -dumpmachine)"
  45. make -j${jobs} V=1
  46. make -j${jobs} V=1 DESTDIR="$destdir" install
  47. # Copy documentation
  48. mkdir -p "${destdir}${docsdir}"
  49. cp -p $docs "${destdir}${docsdir}"
  50. }