wok view tzdata/receipt @ rev 25740

Fix vlc build, 3.x required Qt5
author Stanislas Leduc <shann@slitaz.org>
date Sun Aug 25 19:45:07 2024 +0200 (2 months ago)
parents bc2b9d9bed6f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2022a"
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 DEPENDS="glibc"
15 # genpkg_rules expect some locale-* build tree
16 BUILD_DEPENDS="glibc-dev locale-fr"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/eggert/tz/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ZONEINFO=$install/usr/share/zoneinfo
31 mkdir -p $ZONEINFO/posix
32 mkdir -p $ZONEINFO/right
34 tzs="etcetera southamerica northamerica europe africa antarctica asia \
35 australasia backward" # pacificnew systemv with 2022a not supplied
36 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
37 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
38 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
40 cp -a $src/zone.tab $ZONEINFO
41 cp -a $src/zone1970.tab $ZONEINFO
42 cp -a $src/iso3166.tab $ZONEINFO
43 zic -d $ZONEINFO -p America/New_York
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/* $fs
51 . $WOK/slitaz-i18n/stuff/locale-pack.conf
52 for locale in $LOCALE_PACK
53 do
54 [ -d "$WOK/locale-$locale" ] || continue
55 echo "* Removing files provided by locale-$locale..."
56 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
57 grep /usr/share/zoneinfo/)
58 for file in $files
59 do
60 [ -e $fs/$file ] && rm -f $fs$file
61 done
62 done
63 }