wok-next view tzdata/receipt @ rev 19715

Fix building: pciutils, pcmanfm-legacy, arj
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 13 17:25:31 2017 +0300 (2017-05-13)
parents e49a74e005e1
children 0ff6bd677938
line source
1 # SliTaz package receipt.
3 PACKAGE="tzdata"
4 VERSION="2017a"
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 DEPENDS="glibc"
16 # genpkg_rules expect some locale-* build tree
17 BUILD_DEPENDS="glibc-dev locale-fr"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ZONEINFO=$install/usr/share/zoneinfo
23 mkdir -p $ZONEINFO/posix $ZONEINFO/right
25 tzs="etcetera southamerica northamerica europe africa antarctica asia \
26 australasia backward pacificnew systemv"
27 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs
28 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs
29 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs
31 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO
32 zic -d $ZONEINFO -p America/New_York
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
40 . $WOK/slitaz-i18n/stuff/locale-pack.conf
41 for locale in $LOCALE_PACK; do
42 [ -d "$WOK/locale-$locale" ] || continue
43 echo "* Removing files provided by locale-$locale..."
44 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \
45 grep /usr/share/zoneinfo/)
46 for file in $files; do
47 [ -e $fs/$file ] && rm -f $fs$file
48 done
49 done
50 }