wok annotate tzdata/receipt @ rev 16984
caja: Remove some share folders.
author | Yuri Pourre <yuripourre@gmail.com> |
---|---|
date | Thu Aug 07 22:54:52 2014 -0300 (2014-08-07) |
parents | ba5bfceaee49 |
children | 5de6ded3cc84 |
rev | line source |
---|---|
al@16463 | 1 # SliTaz package receipt. |
al@16463 | 2 |
al@16463 | 3 PACKAGE="tzdata" |
al@16760 | 4 VERSION="2014e" |
al@16463 | 5 CATEGORY="base-system" |
al@16463 | 6 SHORT_DESC="Time Zone Database" |
al@16463 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@16463 | 8 LICENSE="PublicDomain" |
al@16463 | 9 WEB_SITE="http://www.iana.org/time-zones" |
al@16463 | 10 TARBALL="$PACKAGE$VERSION.tar.gz" |
al@16463 | 11 WGET_URL="ftp://ftp.iana.org/tz/releases/$TARBALL" |
al@16463 | 12 |
al@16463 | 13 DEPENDS="glibc" |
al@16463 | 14 BUILD_DEPENDS="glibc-dev" |
al@16463 | 15 |
al@16463 | 16 # Rules to configure and make the package. |
al@16463 | 17 compile_rules() |
al@16463 | 18 { |
al@16463 | 19 ZONEINFO=$install/usr/share/zoneinfo |
al@16463 | 20 mkdir -p $ZONEINFO/posix $ZONEINFO/right |
al@16463 | 21 |
al@16463 | 22 tzs="etcetera southamerica northamerica europe africa antarctica asia \ |
al@16464 | 23 australasia backward pacificnew systemv" |
al@16463 | 24 zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" $tzs |
al@16463 | 25 zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" $tzs |
al@16463 | 26 zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" $tzs |
al@16463 | 27 |
al@16463 | 28 cp -a $src/zone.tab $src/iso3166.tab $ZONEINFO |
al@16463 | 29 zic -d $ZONEINFO -p America/New_York |
al@16463 | 30 } |
al@16463 | 31 |
al@16463 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@16463 | 33 genpkg_rules() |
al@16463 | 34 { |
al@16463 | 35 cp -a $install/* $fs |
al@16463 | 36 |
al@16463 | 37 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
al@16463 | 38 for locale in $LOCALE_PACK; do |
al@16463 | 39 echo "* Removing files provided by locale-$locale..." |
al@16463 | 40 files=$(cat $WOK/locale-$locale/taz/locale-$locale-*/files.list | \ |
al@16463 | 41 grep /usr/share/zoneinfo/) |
al@16463 | 42 for file in $files; do |
al@16463 | 43 [ -e $fs/$file ] && rm -f $fs$file |
al@16463 | 44 done |
al@16463 | 45 done |
al@16463 | 46 } |