wok view tzdata/receipt @ rev 22592

updated cherokee packages (1.2.101 -> 1.2.104)
author Hans-G?nter Theisgen
date Tue Jan 07 16:51:34 2020 +0100 (2020-01-07)
parents f2fe8c08dc89
children 934055de50e2
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2019c"
5 CATEGORY="base-system"
6 SHORT_DESC="Time Zone Database."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://www.iana.org/time-zones"
11 TARBALL="$PACKAGE$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
14 DEPENDS="glibc"
15 # genpkg_rules expect some locale-* build tree
16 BUILD_DEPENDS="glibc-dev locale-fr"
18 HOST_ARCH="i486 arm"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ZONEINFO=$install/usr/share/zoneinfo
24 mkdir -p $ZONEINFO/posix
25 mkdir -p $ZONEINFO/right
27 tzs="etcetera southamerica northamerica europe africa antarctica asia \
28 australasia backward pacificnew systemv"
29 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
30 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
31 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
33 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
34 zic -d $ZONEINFO -p America/New_York
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/* $fs
42 . $WOK/slitaz-i18n/stuff/locale-pack.conf
43 for locale in $LOCALE_PACK
44 do
45 [ -d "$WOK/locale-$locale" ] || continue
46 echo "* Removing files provided by locale-$locale..."
47 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
48 grep /usr/share/zoneinfo/)
49 for file in $files
50 do
51 [ -e $fs/$file ] && rm -f $fs$file
52 done
53 done
54 }