wok rev 16463

Add tzdata (2014b)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Apr 21 17:37:01 2014 +0300 (2014-04-21)
parents f17e3674e1c0
children 5534e6a526a5
files tzdata/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tzdata/receipt	Mon Apr 21 17:37:01 2014 +0300
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="tzdata"
     1.7 +VERSION="2014b"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Time Zone Database"
    1.10 +MAINTAINER="al.bobylev@gmail.com"
    1.11 +LICENSE="PublicDomain"
    1.12 +WEB_SITE="http://www.iana.org/time-zones"
    1.13 +TARBALL="$PACKAGE$VERSION.tar.gz"
    1.14 +WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
    1.15 +
    1.16 +DEPENDS="glibc"
    1.17 +BUILD_DEPENDS="glibc-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	ZONEINFO=$install/usr/share/zoneinfo
    1.23 +	mkdir -p $ZONEINFO/posix $ZONEINFO/right
    1.24 +
    1.25 +	tzs="etcetera southamerica northamerica europe africa antarctica asia \
    1.26 +australasia backward pacificnew solar87 solar88 solar89 systemv"
    1.27 +	zic -L /dev/null	-d $ZONEINFO		-y "sh yearistype.sh" $tzs
    1.28 +	zic -L /dev/null	-d $ZONEINFO/posix	-y "sh yearistype.sh" $tzs
    1.29 +	zic -L leapseconds	-d $ZONEINFO/right	-y "sh yearistype.sh" $tzs
    1.30 +
    1.31 +	cp -a $src/zone.tab $src/iso3166.tab $ZONEINFO
    1.32 +	zic -d $ZONEINFO -p America/New_York
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	cp -a $install/* $fs
    1.39 +
    1.40 +	. $WOK/slitaz-i18n/stuff/locale-pack.conf
    1.41 +	for locale in $LOCALE_PACK; do
    1.42 +		echo "* Removing files provided by locale-$locale..."
    1.43 +		files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
    1.44 +				grep /usr/share/zoneinfo/)
    1.45 +		for file in $files; do
    1.46 +			[ -e $fs/$file ] && rm -f $fs$file
    1.47 +		done
    1.48 +	done
    1.49 +}