wok-6.x view tzdata/receipt @ rev 17045
Up: firefox-official (31.0)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Aug 19 23:37:07 2014 +0200 (2014-08-19) |
parents | 85a165d936f4 |
children | eb6dc9a5f72d |
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2014f"
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 }