# Maintainer: PktSurf <smlinux@pktsurf.in>
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-$version.tar.xz"
desc="ISO standards collection like language, language script and curreny names"
requires="gettext"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  # this software is so stupid, it doesn't make a basic msgfmt file check,
  # which is part of gettext.
  if [[ ! -x /bin/msgfmt ]]; then
    err "/bin/msgfmt, part of gettext, not found!"
  fi

  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

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