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