app=tzdb
version=2019c
build=1sml
homepage="https://www.iana.org/time-zones"
download="https://data.iana.org/time-zones/releases/tzdb-$version.tar.lz"
desc="Time zone database from IANA"
requires="musl"

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

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

  make install CC="$CC" \
    DESTDIR=$pkg \
    USRDIR="/" \
    BINDIR="/bin" \
    ZICDIR="/bin" \
    MANDIR="/share/man" 

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
cc76c25a55868d61e8500293d1ee3cadb0055987fc81ad0ed08add548e1c6a19cd2a10f4c4313827e4ab46bd2fbf16607519b4db92930ebaaa87062fa4c8b55d  tzdb-2019c.tar.lz
"
