# Contributor: Sören Tempel # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=tzdata pkgver=2016j _tzcodever=2016j _ptzver=0.5 pkgrel=0 pkgdesc="Timezone data" url="http://www.twinsun.com/tz/tz-link.htm" arch="all" license="Public Domain" depends="" depends_dev="" makedepends="" install="" subpackages="$pkgname-doc" source="http://www.iana.org/time-zones/repository/releases/tzcode$_tzcodever.tar.gz http://www.iana.org/time-zones/repository/releases/tzdata$pkgver.tar.gz http://dev.alpinelinux.org/archive/posixtz/posixtz-$_ptzver.tar.xz 0001-posixtz-fix-up-lseek.patch" builddir="$srcdir" _timezones="africa antarctica asia australasia europe northamerica \ southamerica pacificnew etcetera backward systemv factory" build() { cd "$builddir" make cc="${CC:-gcc}" CFLAGS="$CFLAGS -DHAVE_STDINT_H=1" TZDIR="/usr/share/zoneinfo" || return 1 cd "$builddir"/posixtz-$_ptzver make posixtz || return 1 } package() { cd "$builddir" ./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo ${_timezones} ./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo/right -L leapseconds ${_timezones} #./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo/posix ${_timezones} ./zic -y ./yearistype -d "$pkgdir"/usr/share/zoneinfo -p America/New_York install -m444 -t "$pkgdir"/usr/share/zoneinfo iso3166.tab zone1970.tab zone.tab mkdir -p "$pkgdir"/usr/sbin install -m755 zic zdump "$pkgdir"/usr/sbin || return 1 mkdir -p "$pkgdir"/usr/share/man/man8 install -m644 zic.8 zdump.8 "$pkgdir"/usr/share/man/man8 || return 1 rm -f "$pkgdir"/usr/share/zoneinfo/localtime || return 1 install -Dm755 "$srcdir"/posixtz-$_ptzver/posixtz \ "$pkgdir"/usr/bin/posixtz || return 1 } md5sums="0684b98eb184fab250b6ca946862078d tzcode2016j.tar.gz db361d005ac8b30a2d18c5ca38d3e8ab tzdata2016j.tar.gz 80f8ae1df19dd28e1c8b192c6ea7b836 posixtz-0.5.tar.xz ca177ded459c9d9c543b5d6ffcc6d6ac 0001-posixtz-fix-up-lseek.patch" sha256sums="b9effc4fb4051df4a356cbe5857bf99e2fa32e00d8340f2e8a4d58f0c9ccb0b7 tzcode2016j.tar.gz f5ee4e0f115f6c2faee1c4b16193a97338cbd1b503f2cea6c5a768c82ff39dc8 tzdata2016j.tar.gz e0a79e0922be2da686a1888d79cd253baaf81c2f30b4378fbbcf9ff9d632aab5 posixtz-0.5.tar.xz 4e7496c015878226659c45f22adf3d556692993465c4b837a6f92829fede8b71 0001-posixtz-fix-up-lseek.patch" sha512sums="cac19dded22ff80cd784641ac239358c28cce535ac1eb60b52b7e51c6e9e5fe5f795ea0252daf32c949dddb9c5b24d7e4456d7869aa2725d49c5af58b564822a tzcode2016j.tar.gz ce0b9958b764479fac7df6b5ba0933fc4c6d815ebccc2537c75c4be105691cd58054704eebfb50ca755d7d48504480d4925ce8836eb499ae4798e3d5503d7e0e tzdata2016j.tar.gz 68dbaab9f4aef166ac2f2d40b49366527b840bebe17a47599fe38345835e4adb8a767910745ece9c384b57af815a871243c3e261a29f41d71f8054df3061b3fd posixtz-0.5.tar.xz f54ce213d74c5a8387e1a7c56299bc6eee65a035772288222128abc249a112067b8791b88b45c342b2d4d8d12e9e4f1f2f5c92c5de67f8b6413b1ebf1d7de467 0001-posixtz-fix-up-lseek.patch"