wok-next view tzdata/receipt @ rev 20006

nginx-extras: update bdeps, vte-dev: add vte.pc
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 21 15:15:14 2017 +0200 (2017-10-21)
parents eb23a9b0f828
children 2e60fe1db5a4
line source
1 # SliTaz package receipt v2.
3 PACKAGE="tzdata"
4 VERSION="2017b"
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"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE$VERSION.tar.gz"
13 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL"
15 BUILD_DEPENDS="glibc-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ZONEINFO=$install/usr/share/zoneinfo
21 mkdir -p $ZONEINFO/posix $ZONEINFO/right
23 tzs="etcetera southamerica northamerica europe africa antarctica asia \
24 australasia backward pacificnew systemv"
25 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
26 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
27 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
29 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
30 zic -d $ZONEINFO -p America/New_York
32 docdir=$install/usr/share/doc/tzdata-$VERSION
33 mkdir -p $docdir
34 cp CONTRIBUTING LICENSE NEWS README Theory $docdir
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 copy @std
42 . $WOK/slitaz-i18n/stuff/locale-pack.conf
43 i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION)
44 for locale in $LOCALE_PACK; do
45 [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue
46 echo "* Removing files provided by locale-$locale..."
47 files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/files.list | \
48 grep /usr/share/zoneinfo/)
49 for file in $files; do
50 [ -e $fs/$file ] && rm -f $fs$file
51 done
52 done
53 DEPENDS="glibc"
54 }