wok annotate locale-zh_CN/receipt @ rev 7273

Up: winetricks to 20101106.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Nov 15 06:25:46 2010 +0000 (2010-11-15)
parents 28253bd3176d
children 23b733bbc00a
rev   line source
pankso@2778 1 # SliTaz package receipt
pankso@2778 2
pankso@2778 3 PACKAGE="locale-zh_CN"
pankso@2778 4 VERSION="1.1"
pankso@2778 5 CATEGORY="system-tools"
pankso@2778 6 SHORT_DESC="Chinese Simplified locale pack."
pankso@2778 7 MAINTAINER="pankso@slitaz.org"
tsjz@3276 8 DEPENDS="glibc-base wqy-bitmapfont"
pankso@2778 9 BUILD_DEPENDS="glibc glibc-locale xorg-libX11"
pankso@2778 10 WEB_SITE="http://www.slitaz.org/"
pankso@2778 11
pankso@2778 12 CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \
pankso@2778 13 glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad"
pankso@2778 14
pankso@2778 15 LOCALE="zh_CN"
pankso@2778 16 LOCALEDEF="zh_CN"
pankso@2778 17 CHARMAP="UTF-8"
pankso@2778 18
pankso@2778 19 # Rules to configure and make the package.
pankso@2778 20 compile_rules()
pankso@2778 21 {
pankso@2778 22 # Ensure packages are built.
pankso@2778 23 for pkg in $CORE_PKGS
pankso@2778 24 do
pankso@2778 25 [ -d $WOK/$pkg/taz ] || tazwok cook $pkg
pankso@2778 26 done
pankso@2778 27 }
pankso@2778 28
pankso@2778 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2778 30 # Genereted locale files are in /usr/lib/locale.
pankso@2778 31 genpkg_rules()
pankso@2778 32 {
pankso@2778 33 mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale
pankso@2778 34 PKG_NAME="$PACKAGE"
pankso@2778 35 PKG_VERS="$VERSION"
pankso@4855 36 mk_locale_dir
pankso@4855 37 get_slitaz_messages
pankso@4855 38 get_core_messages
pankso@2778 39 PACKAGE="$PKG_NAME"
pankso@2778 40 VERSION="$PKG_VERS"
pankso@2778 41 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8
pankso@2778 42 }
pankso@2778 43
pankso@2778 44 # Back to C if it's the last used locale.
pankso@2778 45 post_remove()
pankso@2778 46 {
pankso@2778 47 if grep -q $LOCALEDEF /etc/locale.conf; then
pankso@2778 48 echo "LANG=C" > /etc/locale.conf
pankso@2778 49 echo "LC_ALL=C" >> /etc/locale.conf
pankso@2778 50 fi
pankso@2778 51 }