wok-next diff tzdata/receipt @ rev 20010
Up rsnapshot (1.4.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 21 18:08:51 2017 +0200 (2017-10-21) |
parents | eb23a9b0f828 |
children | 2e60fe1db5a4 |
line diff
1.1 --- a/tzdata/receipt Wed Mar 01 23:29:10 2017 +0200 1.2 +++ b/tzdata/receipt Sat Oct 21 18:08:51 2017 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tzdata" 1.8 -VERSION="2017a" 1.9 +VERSION="2017b" 1.10 CATEGORY="base-system" 1.11 SHORT_DESC="Time Zone Database" 1.12 MAINTAINER="al.bobylev@gmail.com" 1.13 @@ -12,9 +12,7 @@ 1.14 TARBALL="$PACKAGE$VERSION.tar.gz" 1.15 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL" 1.16 1.17 -DEPENDS="glibc" 1.18 -# genpkg_rules expect some locale-* build tree 1.19 -BUILD_DEPENDS="glibc-dev locale-fr" 1.20 +BUILD_DEPENDS="glibc-dev" 1.21 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 @@ -30,21 +28,27 @@ 1.25 1.26 cp -a $src/zone.tab $src/zone1970.tab $src/iso3166.tab $ZONEINFO 1.27 zic -d $ZONEINFO -p America/New_York 1.28 + 1.29 + docdir=$install/usr/share/doc/tzdata-$VERSION 1.30 + mkdir -p $docdir 1.31 + cp CONTRIBUTING LICENSE NEWS README Theory $docdir 1.32 } 1.33 1.34 # Rules to gen a SliTaz package suitable for Tazpkg. 1.35 genpkg_rules() 1.36 { 1.37 - cp -a $install/* $fs 1.38 + copy @std 1.39 1.40 . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.41 + i18n_ver=$(. $WOK/slitaz-i18n/receipt; echo $VERSION) 1.42 for locale in $LOCALE_PACK; do 1.43 - [ -d "$WOK/locale-$locale" ] || continue 1.44 + [ -d "$WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver" ] || continue 1.45 echo "* Removing files provided by locale-$locale..." 1.46 - files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \ 1.47 + files=$(cat $WOK/slitaz-i18n/taz/locale-$locale-$i18n_ver/files.list | \ 1.48 grep /usr/share/zoneinfo/) 1.49 for file in $files; do 1.50 [ -e $fs/$file ] && rm -f $fs$file 1.51 done 1.52 done 1.53 + DEPENDS="glibc" 1.54 }