wok-next view tzdata/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | a53441c56fc9 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tzdata"
4 VERSION="2018i"
5 CATEGORY="base-system"
6 SHORT_DESC="Time Zone Database"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://www.iana.org/time-zones"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE$VERSION.tar.gz"
13 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
14 TARBALL_SHA1="bd5cd102c4a3c8206834b9bc6922437cc698c3c0"
16 BUILD_DEPENDS="glibc-dev"
18 compile_rules() {
19 ZONEINFO=$install/usr/share/zoneinfo
20 mkdir -p $ZONEINFO/posix $ZONEINFO/right
22 tzs="etcetera southamerica northamerica europe africa antarctica asia \
23 australasia backward pacificnew systemv"
24 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
25 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
26 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
28 cp zone.tab zone1970.tab iso3166.tab $ZONEINFO
29 zic -d $ZONEINFO -p America/New_York
31 cook_pick_docs CONTRIBUTING LICENSE NEWS README theory.html
32 }
34 genpkg_rules() {
35 copy @std
37 . $WOK/slitaz-i18n/stuff/locale-pack.conf
38 i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION)
39 for locale in $LOCALE_PACK; do
40 [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue
41 echo "* Removing files provided by locale-$locale..."
42 files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/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 DEPENDS="glibc"
49 }