wok-next annotate tzdata/receipt @ rev 21095
Forgot to remove HOST_ARCH="any"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jan 01 04:17:55 2019 +0200 (2019-01-01) |
parents | d08d2d235af0 |
children | 59c6b07cb8eb |
rev | line source |
---|---|
al@19759 | 1 # SliTaz package receipt v2. |
al@16463 | 2 |
al@16463 | 3 PACKAGE="tzdata" |
al@21025 | 4 VERSION="2018g" |
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@21025 | 10 HOST_ARCH="any" |
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@19759 | 15 BUILD_DEPENDS="glibc-dev" |
al@16463 | 16 |
al@20443 | 17 compile_rules() { |
al@16463 | 18 ZONEINFO=$install/usr/share/zoneinfo |
al@16463 | 19 mkdir -p $ZONEINFO/posix $ZONEINFO/right |
al@16463 | 20 |
al@16463 | 21 tzs="etcetera southamerica northamerica europe africa antarctica asia \ |
al@16464 | 22 australasia backward pacificnew systemv" |
al@18862 | 23 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs |
al@18862 | 24 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs |
al@18862 | 25 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs |
al@16463 | 26 |
al@21025 | 27 cp zone.tab zone1970.tab iso3166.tab $ZONEINFO |
al@16463 | 28 zic -d $ZONEINFO -p America/New_York |
al@19759 | 29 |
al@20210 | 30 cook_pick_docs CONTRIBUTING LICENSE NEWS README theory.html |
al@16463 | 31 } |
al@16463 | 32 |
al@20443 | 33 genpkg_rules() { |
al@19759 | 34 copy @std |
al@16463 | 35 |
al@16463 | 36 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@19759 | 37 i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION) |
al@16463 | 38 for locale in $LOCALE_PACK; do |
al@19759 | 39 [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue |
al@16463 | 40 echo "* Removing files provided by locale-$locale..." |
al@19759 | 41 files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/files.list | \ |
al@16463 | 42 grep /usr/share/zoneinfo/) |
al@16463 | 43 for file in $files; do |
al@16463 | 44 [ -e $fs/$file ] && rm -f $fs$file |
al@16463 | 45 done |
al@16463 | 46 done |
al@19759 | 47 DEPENDS="glibc" |
al@16463 | 48 } |