# Description: The zoneinfo database or IANA Time Zone
# URL: http://www.gnu.org/software/libc/
# Packager: milisarge@gmail.com
name=tzdata
version=2016a
release=1

source=(http://www.iana.org/time-zones/repository/releases/$name$version.tar.gz)
build() {
timezones=('africa' 'antarctica' 'asia' 'australasia'
           'europe' 'northamerica' 'southamerica'
           'pacificnew' 'etcetera' 'backward'
           'systemv')
zic -y ./yearistype -d $PKG/usr/share/zoneinfo ${timezones[@]}
zic -y ./yearistype -d $PKG/usr/share/zoneinfo/posix ${timezones[@]}
zic -y ./yearistype -d $PKG/usr/share/zoneinfo/right -L leapseconds ${timezones[@]}
zic -y ./yearistype -d $PKG/usr/share/zoneinfo -p Europe/Istanbul
install -m444 -t $PKG/usr/share/zoneinfo iso3166.tab zone.tab
}
