wok-6.x view tzdata/receipt @ rev 18101
Up lighttpd (1.4.35)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jun 01 10:08:34 2015 +0200 (2015-06-01) |
parents | 7c1ede17eb39 |
children | d58afc905764 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2015d"
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 HOST_ARCH="i486 arm"
14 DEPENDS="glibc"
15 # genpkg_rules expect some locale-* build tree
16 BUILD_DEPENDS="glibc-dev locale-fr"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ZONEINFO=$install/usr/share/zoneinfo
22 mkdir -p $ZONEINFO/posix $ZONEINFO/right
24 tzs="etcetera southamerica northamerica europe africa antarctica asia \
25 australasia backward pacificnew systemv"
26 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
27 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
28 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
30 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
31 zic -d $ZONEINFO -p America/New_York
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/* $fs
39 . $WOK/slitaz-i18n/stuff/locale-pack.conf
40 for locale in $LOCALE_PACK; do
41 echo "* Removing files provided by locale-$locale..."
42 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
43 grep /usr/share/zoneinfo/)
44 for file in $files; do
45 [ -e $fs/$file ] && rm -f $fs$file
46 done
47 done
48 }