# SliTaz package receipt. PACKAGE="tzdata" VERSION="2023c" CATEGORY="base-system" SHORT_DESC="Time Zone Database." MAINTAINER="al.bobylev@gmail.com" LICENSE="PublicDomain" WEB_SITE="https://www.iana.org/time-zones" TARBALL="$PACKAGE$VERSION.tar.gz" WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL" DEPENDS="glibc" # genpkg_rules expect some locale-* build tree BUILD_DEPENDS="glibc-dev" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - https://github.com/eggert/tz/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { ZONEINFO=$install/usr/share/zoneinfo mkdir -p $ZONEINFO/posix mkdir -p $ZONEINFO/right tzs="etcetera southamerica northamerica europe africa antarctica asia \ australasia backward" # pacificnew systemv with 2022a not supplied zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs cp -a $src/zone.tab $ZONEINFO cp -a $src/zone1970.tab $ZONEINFO cp -a $src/iso3166.tab $ZONEINFO zic -d $ZONEINFO -p America/New_York } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs . $WOK/slitaz-i18n/stuff/locale-pack.conf for locale in $LOCALE_PACK do [ -d "$WOK/locale-$locale" ] || continue echo "* Removing files provided by locale-$locale..." files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \ grep /usr/share/zoneinfo/) for file in $files do [ -e $fs/$file ] && rm -f $fs$file done done }