wok view tzdata/receipt @ rev 18565
Add pass
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 09 10:16:49 2015 +0100 (2015-11-09) |
parents | cf37d3c0b711 |
children | 91b74be21e59 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2015g"
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 }