wok-next view tzdata/receipt @ rev 20990
Remove mate116 stash
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 02 22:23:34 2018 +0300 (2018-10-02) |
parents | 57f715384469 |
children | a53441c56fc9 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tzdata"
4 VERSION="2018e"
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"
11 TARBALL="$PACKAGE$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
14 BUILD_DEPENDS="glibc-dev"
16 compile_rules() {
17 ZONEINFO=$install/usr/share/zoneinfo
18 mkdir -p $ZONEINFO/posix $ZONEINFO/right
20 tzs="etcetera southamerica northamerica europe africa antarctica asia \
21 australasia backward pacificnew systemv"
22 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
23 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
24 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
26 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
27 zic -d $ZONEINFO -p America/New_York
29 cook_pick_docs CONTRIBUTING LICENSE NEWS README theory.html
30 }
32 genpkg_rules() {
33 copy @std
35 . $WOK/slitaz-i18n/stuff/locale-pack.conf
36 i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION)
37 for locale in $LOCALE_PACK; do
38 [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue
39 echo "* Removing files provided by locale-$locale..."
40 files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/files.list | \
41 grep /usr/share/zoneinfo/)
42 for file in $files; do
43 [ -e $fs/$file ] && rm -f $fs$file
44 done
45 done
46 DEPENDS="glibc"
47 }