wok annotate glibc-locale/receipt @ rev 529
Add glibc-locale + locale pack: es, cs, ru
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 09 16:08:07 2008 +0200 (2008-04-09) |
parents | |
children | ab8b4e288bc8 |
rev | line source |
---|---|
pankso@529 | 1 # SliTaz package receipt. |
pankso@529 | 2 |
pankso@529 | 3 PACKAGE="glibc-locale" |
pankso@529 | 4 VERSION="2.7" |
pankso@529 | 5 CATEGORY="system-tools" |
pankso@529 | 6 SHORT_DESC="The GNU C libraries locale files (see also locale-*)." |
pankso@529 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@529 | 8 DEPENDS="glibc-base locale-cs locale-es locale-ru" |
pankso@529 | 9 WANTED="glibc" |
pankso@529 | 10 WEB_SITE="http://www.gnu.org/software/libc/" |
pankso@529 | 11 SOURCES="glibc" |
pankso@529 | 12 |
pankso@529 | 13 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@529 | 14 # |
pankso@529 | 15 # This package provide glibc locale files and utility. |
pankso@529 | 16 # |
pankso@529 | 17 genpkg_rules() |
pankso@529 | 18 { |
pankso@529 | 19 mkdir -p $fs/usr/share $fs/usr/lib $fs/usr/bin |
pankso@529 | 20 |
pankso@529 | 21 cp -a $_pkg/usr/lib/gconv $fs/usr/lib |
pankso@529 | 22 cp -a $_pkg/usr/share/locale $fs/usr/share |
pankso@529 | 23 cp -a $_pkg/usr/share/i18n $fs/usr/share |
pankso@529 | 24 |
pankso@529 | 25 # Utilities and tools |
pankso@529 | 26 cp -a $_pkg/usr/bin/localedef $fs/usr/bin |
pankso@529 | 27 cp -a $_pkg/usr/bin/iconv $fs/usr/bin |
pankso@529 | 28 cp -a $_pkg/usr/bin/tzselect $fs/usr/bin |
pankso@529 | 29 |
pankso@529 | 30 # Rm base files. |
pankso@529 | 31 echo -n "Removing all base files..." |
pankso@529 | 32 for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list` |
pankso@529 | 33 do |
pankso@529 | 34 rm -f ${fs}$file |
pankso@529 | 35 done |
pankso@529 | 36 status |
pankso@529 | 37 |
pankso@529 | 38 # Rm files provided by locale-pack. |
pankso@529 | 39 |
pankso@529 | 40 # cs |
pankso@529 | 41 rm -f $fs/usr/share/i18n/locales/cs_CZ |
pankso@529 | 42 rm -rf $fs/usr/share/locale/cs |
pankso@529 | 43 # es |
pankso@529 | 44 rm -f $fs/usr/share/i18n/locales/es_ES |
pankso@529 | 45 rm -rf $fs/usr/share/locale/es |
pankso@529 | 46 # ru |
pankso@529 | 47 rm -f $fs/usr/share/i18n/locales/ru_RU |
pankso@529 | 48 rm -rf $fs/usr/share/locale/ru |
pankso@529 | 49 rm -f $fs/usr/share/i18n/charmaps/KOI8-RU.gz |
pankso@529 | 50 rm -f $fs/usr/lib/gconv/KOI8-RU.so |
pankso@529 | 51 } |