APP=iso-codes
VERSION=4.4
BUILD=1sml
HOMEPAGE='https://salsa.debian.org/iso-codes-team/iso-codes'
DOWNLOAD='http://anduin.linuxfromscratch.org/BLFS/iso-codes/iso-codes-4.4.tar.xz'
DESC="ISO standards collection like language, language script and curreny names"
REQUIRES="gettext"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  # this software is so stupid, it doesn't make a basic msgfmt file check,
  # which is part of gettext.
  if [ ! -x /bin/msgfmt ]; then
    exit 1
  fi

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --localstatedir=/var

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
a2a07de5d8f4cd9851a86a3e28e8e0bb7c594246a706116b3dcc0f37423f4d880c76aa0a7b5b18aa3cc783c23689fc2f5c7faf83466d5cf2bf5a6b24f7626aef  iso-codes-4.4.tar.lz
"
