wok-next annotate tzdata/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents a53441c56fc9
children
rev   line source
al@19759 1 # SliTaz package receipt v2.
al@16463 2
al@16463 3 PACKAGE="tzdata"
al@21141 4 VERSION="2018i"
al@16463 5 CATEGORY="base-system"
al@16463 6 SHORT_DESC="Time Zone Database"
al@16463 7 MAINTAINER="al.bobylev@gmail.com"
al@16463 8 LICENSE="PublicDomain"
al@19589 9 WEB_SITE="https://www.iana.org/time-zones"
al@21025 10 HOST_ARCH="any"
al@19589 11
al@16463 12 TARBALL="$PACKAGE$VERSION.tar.gz"
al@16463 13 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
al@21141 14 TARBALL_SHA1="bd5cd102c4a3c8206834b9bc6922437cc698c3c0"
al@17402 15
al@19759 16 BUILD_DEPENDS="glibc-dev"
al@16463 17
al@20443 18 compile_rules() {
al@16463 19 ZONEINFO=$install/usr/share/zoneinfo
al@16463 20 mkdir -p $ZONEINFO/posix $ZONEINFO/right
al@16463 21
al@16463 22 tzs="etcetera southamerica northamerica europe africa antarctica asia \
al@16464 23 australasia backward pacificnew systemv"
al@18862 24 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
al@18862 25 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
al@18862 26 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
al@16463 27
al@21025 28 cp zone.tab zone1970.tab iso3166.tab $ZONEINFO
al@16463 29 zic -d $ZONEINFO -p America/New_York
al@19759 30
al@20210 31 cook_pick_docs CONTRIBUTING LICENSE NEWS README theory.html
al@16463 32 }
al@16463 33
al@20443 34 genpkg_rules() {
al@19759 35 copy @std
al@16463 36
al@16463 37 . $WOK/slitaz-i18n/stuff/locale-pack.conf
al@19759 38 i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION)
al@16463 39 for locale in $LOCALE_PACK; do
al@19759 40 [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue
al@16463 41 echo "* Removing files provided by locale-$locale..."
al@19759 42 files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/files.list | \
al@16463 43 grep /usr/share/zoneinfo/)
al@16463 44 for file in $files; do
al@16463 45 [ -e $fs/$file ] && rm -f $fs$file
al@16463 46 done
al@16463 47 done
al@19759 48 DEPENDS="glibc"
al@16463 49 }