pkgname=iso-codes
pkgver=4.18.0
pkgdesc='Lists of the country, language, and currency names'
homepage='https://salsa.debian.org/iso-codes-team/iso-codes'
arch=(any)
license=(LGPL-2.1-only)
makedepends=(meson python)
sources=("${pkgname}-v${pkgver}.tar.gz")
urls=("https://salsa.debian.org/${pkgname}-team/${pkgname}/-/archive/v${pkgver}/${sources[0]}")
sha512sums=("4f9766b3e73a155df3213d5684f0b4c2aefe3efcdc30b2a969913a90deb73e1cbd32a63c2f00c736517c1feed790944d12155410d3c4d381749c39ecd1f71f96")
options=('!strip')

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  # local meson_args=(
  #   --prefix=/usr
  #   --buildtype=release
  #   --wrap-mode=nodownload
  #   -D python.bytecompile=1
  # )
  # meson setup build "${meson_args[@]}"
  # meson compile -C build
  ./configure --prefix=/usr
  make
}

src_install() {
  # meson install -C build --destdir "$pkgdir"
    make install LN_S='ln -sfn' DESTDIR="${pkgdir}"
}

# vim:ft=sh syn=sh et sw=2:
