APP=tzdb
VERSION=2019c
BUILD=1sml
HOMEPAGE="https://www.iana.org/time-zones"
DOWNLOAD="https://data.iana.org/time-zones/releases/tzdb-2019c.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
"
