wok-next annotate tzdata/receipt @ rev 19589
Up faenza-icon-theme, tzdata.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jan 21 11:36:06 2017 +0200 (2017-01-21) |
parents | f2fe8c08dc89 |
children | eb23a9b0f828 |
rev | line source |
---|---|
al@16463 | 1 # SliTaz package receipt. |
al@16463 | 2 |
al@16463 | 3 PACKAGE="tzdata" |
al@19522 | 4 VERSION="2016j" |
al@16463 | 5 CATEGORY="base-system" |
al@16463 | 6 SHORT_DESC="Time Zone Database" |
al@16463 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16463 | 8 LICENSE="PublicDomain" |
al@19589 | 9 WEB_SITE="https://www.iana.org/time-zones" |
al@19589 | 10 HOST_ARCH="i486 arm" |
al@19589 | 11 |
al@16463 | 12 TARBALL="$PACKAGE$VERSION.tar.gz" |
al@16463 | 13 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL" |
al@17402 | 14 |
al@16463 | 15 DEPENDS="glibc" |
pascal@17718 | 16 # genpkg_rules expect some locale-* build tree |
pascal@17718 | 17 BUILD_DEPENDS="glibc-dev locale-fr" |
al@16463 | 18 |
al@16463 | 19 # Rules to configure and make the package. |
al@16463 | 20 compile_rules() |
al@16463 | 21 { |
al@16463 | 22 ZONEINFO=$install/usr/share/zoneinfo |
al@16463 | 23 mkdir -p $ZONEINFO/posix $ZONEINFO/right |
al@16463 | 24 |
al@16463 | 25 tzs="etcetera southamerica northamerica europe africa antarctica asia \ |
al@16464 | 26 australasia backward pacificnew systemv" |
al@18862 | 27 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs |
al@18862 | 28 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs |
al@18862 | 29 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs |
al@16463 | 30 |
al@16997 | 31 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO |
al@16463 | 32 zic -d $ZONEINFO -p America/New_York |
al@16463 | 33 } |
al@16463 | 34 |
al@16463 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16463 | 36 genpkg_rules() |
al@16463 | 37 { |
al@16463 | 38 cp -a $install/* $fs |
al@16463 | 39 |
al@16463 | 40 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@16463 | 41 for locale in $LOCALE_PACK; do |
al@19501 | 42 [ -d "$WOK/locale-$locale" ] || continue |
al@16463 | 43 echo "* Removing files provided by locale-$locale..." |
al@16463 | 44 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \ |
al@16463 | 45 grep /usr/share/zoneinfo/) |
al@16463 | 46 for file in $files; do |
al@16463 | 47 [ -e $fs/$file ] && rm -f $fs$file |
al@16463 | 48 done |
al@16463 | 49 done |
al@16463 | 50 } |