PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=ftp # retrieval method : # can be svn, git, http, ftp, filesystem # SRC_FETCH_METHOD=http # SRC_FETCH_PATH="ftp://ftp.iana.org/tz/releases/tzcode${PKGVER}.tar.gz" # retrieval path : # SRC_FETCH_PATH=http://foo.com/test.tar.bz2 # # Use FLXHOSTOS, FLXHOSTARCH, HOSTCC, HOSTCXX for the machine used to build. # Use FLXTARGOS, FLXTARGARCH, CC, CXX, LD, for the target machine. # FLXMAKE usually is 'make', FLXPMAKE usually is 'make -j 2' # Build tools are in /$FLXTOOLDIR, toolchain root dir is /$FLXROOTDIR. # Current dir is /$CURDIR, package dir is /$PKGDIR, dest root dir is /$ROOTDIR. # Package name is $PKGRADIX-$PKGVER-$DISTVER # optimize for size #FLXARCH=$FLX_ARCH_SMALL FLXARCH=noarch #MAKEDEPENDS=( 'glibc-2.*:::private.h' ) MAKEDEPENDS= # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' # # exemple : # MAKEDEPENDS='tplparser-0local-flx0.0:albdev:i586:*.a *.h' function do_config { # if you upgrade the version of the code, please update the data package in add-ons too # url: https://data.iana.org/time-zones/releases/tzdata${PKGVER}.tar.gz tar xvzf .flxpkg/add-ons/tzdata${PKGVER}.tar.gz patch -p1 < .flxpkg/patches/old-timezone-systemv.patch make zic } export TAR_STRIP_COMP=0 ZONEINFO=.build function do_clean() { make clean rm -rf $ZONEINFO } function do_compile_only { local tz mkdir -pv $ZONEINFO/{posix,right} [ -e Makefile ] && make leapseconds for tz in etcetera southamerica northamerica europe africa antarctica \ asia australasia backward pacificnew \ systemv factory; do echo -n "Producing ${tz} ... " ./zic -L /dev/null -d $ZONEINFO ${tz} &&\ ./zic -L /dev/null -d $ZONEINFO/posix ${tz} &&\ ./zic -L leapseconds -d $ZONEINFO/right ${tz} &&\ echo "OK" || echo "ERROR" done cp -v zone.tab iso3166.tab $ZONEINFO echo -n "Producing America/New_York ... " ./zic -d $ZONEINFO -p America/New_York && echo "OK" || echo "ERROR" unset ZONEINFO } function do_prepack { mkdir -pv $ROOTDIR/usr/share/zoneinfo cp -arf .build/* $ROOTDIR/usr/share/zoneinfo chown -R root:root $ROOTDIR/usr/share/zoneinfo set_default_perm $ROOTDIR/usr/share/zoneinfo }