wok-next view tzdata/receipt @ rev 17112

tzdata: up (2014g).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Sep 02 00:45:04 2014 +0300 (2014-09-02)
parents 5de6ded3cc84
children a0ea0f119db9
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2014g"
5 CATEGORY="base-system"
6 SHORT_DESC="Time Zone Database"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://www.iana.org/time-zones"
10 TARBALL="$PACKAGE$VERSION.tar.gz"
11 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
12 DEPENDS="glibc"
13 BUILD_DEPENDS="glibc-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 ZONEINFO=$install/usr/share/zoneinfo
19 mkdir -p $ZONEINFO/posix $ZONEINFO/right
21 tzs="etcetera southamerica northamerica europe africa antarctica asia \
22 australasia backward pacificnew systemv"
23 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
24 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
25 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
27 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
28 zic -d $ZONEINFO -p America/New_York
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/* $fs
36 . $WOK/slitaz-i18n/stuff/locale-pack.conf
37 for locale in $LOCALE_PACK; do
38 echo "* Removing files provided by locale-$locale..."
39 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
40 grep /usr/share/zoneinfo/)
41 for file in $files; do
42 [ -e $fs/$file ] && rm -f $fs$file
43 done
44 done
45 }