wok-current view tzdata/receipt @ rev 17680
Rollback socat
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Feb 19 12:49:41 2015 -0200 (2015-02-19) |
parents | cea5a9fa7152 |
children | 696f47eb99f4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2015a"
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 BUILD_DEPENDS="glibc-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ZONEINFO=$install/usr/share/zoneinfo
21 mkdir -p $ZONEINFO/posix $ZONEINFO/right
23 tzs="etcetera southamerica northamerica europe africa antarctica asia \
24 australasia backward pacificnew systemv"
25 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
26 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
27 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
29 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
30 zic -d $ZONEINFO -p America/New_York
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
38 . $WOK/slitaz-i18n/stuff/locale-pack.conf
39 for locale in $LOCALE_PACK; do
40 echo "* Removing files provided by locale-$locale..."
41 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
42 grep /usr/share/zoneinfo/)
43 for file in $files; do
44 [ -e $fs/$file ] && rm -f $fs$file
45 done
46 done
47 }