wok-next view tzdata/receipt @ rev 20604

More fix libtool.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 13:15:41 2018 +0300 (2018-04-19)
parents 0e7893ac206d
children d08d2d235af0
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tzdata"
4 VERSION="2018d"
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 }