wok annotate tzdata/receipt @ rev 24669
updated inxi (3.0.37 -> 3.3.13)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 16:49:52 2022 +0100 (2022-03-11) |
parents | 934055de50e2 |
children | d00aec28667f |
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 |
pascal@24462 | 20 # What is the latest version available today? |
pascal@24462 | 21 current_version() |
pascal@24462 | 22 { |
pascal@24614 | 23 wget -O - https://github.com/eggert/tz/tags 2>/dev/null | \ |
pascal@24614 | 24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24462 | 25 } |
pascal@24462 | 26 |
al@16463 | 27 # Rules to configure and make the package. |
al@16463 | 28 compile_rules() |
al@16463 | 29 { |
al@16463 | 30 ZONEINFO=$install/usr/share/zoneinfo |
Hans-G?nter@22065 | 31 mkdir -p $ZONEINFO/posix |
Hans-G?nter@22065 | 32 mkdir -p $ZONEINFO/right |
al@16463 | 33 |
al@16463 | 34 tzs="etcetera southamerica northamerica europe africa antarctica asia \ |
al@16464 | 35 australasia backward pacificnew systemv" |
al@18862 | 36 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs |
al@18862 | 37 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs |
al@18862 | 38 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs |
al@16463 | 39 |
al@16997 | 40 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO |
al@16463 | 41 zic -d $ZONEINFO -p America/New_York |
al@16463 | 42 } |
al@16463 | 43 |
al@16463 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16463 | 45 genpkg_rules() |
al@16463 | 46 { |
al@16463 | 47 cp -a $install/* $fs |
al@16463 | 48 |
al@16463 | 49 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
Hans-G?nter@22065 | 50 for locale in $LOCALE_PACK |
Hans-G?nter@22065 | 51 do |
al@19501 | 52 [ -d "$WOK/locale-$locale" ] || continue |
al@16463 | 53 echo "* Removing files provided by locale-$locale..." |
al@16463 | 54 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \ |
al@16463 | 55 grep /usr/share/zoneinfo/) |
Hans-G?nter@22065 | 56 for file in $files |
Hans-G?nter@22065 | 57 do |
al@16463 | 58 [ -e $fs/$file ] && rm -f $fs$file |
Hans-G?nter@22065 | 59 done |
Hans-G?nter@22065 | 60 done |
al@16463 | 61 } |