wok-next view tzdata/receipt @ rev 21119

libarchive: depends on libzstd
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jan 14 03:39:08 2019 +0200 (2019-01-14)
parents d08d2d235af0
children 59c6b07cb8eb
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tzdata"
4 VERSION="2018g"
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"
15 BUILD_DEPENDS="glibc-dev"
17 compile_rules() {
18 ZONEINFO=$install/usr/share/zoneinfo
19 mkdir -p $ZONEINFO/posix $ZONEINFO/right
21 tzs="etcetera southamerica northamerica europe africa antarctica asia \
22 australasia backward pacificnew systemv"
23 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
24 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
25 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
27 cp zone.tab zone1970.tab iso3166.tab $ZONEINFO
28 zic -d $ZONEINFO -p America/New_York
30 cook_pick_docs CONTRIBUTING LICENSE NEWS README theory.html
31 }
33 genpkg_rules() {
34 copy @std
36 . $WOK/slitaz-i18n/stuff/locale-pack.conf
37 i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION)
38 for locale in $LOCALE_PACK; do
39 [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue
40 echo "* Removing files provided by locale-$locale..."
41 files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/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 DEPENDS="glibc"
48 }