wok rev 2778
Add language pack zh_CN and zh_TW + pcf-uming
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 27 21:03:55 2009 +0200 (2009-04-27) |
parents | c841c994fce5 |
children | 8e7cd625ccfe |
files | locale-zh_CN/receipt locale-zh_TW/receipt pcf-uming/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/locale-zh_CN/receipt Mon Apr 27 21:03:55 2009 +0200 1.3 @@ -0,0 +1,69 @@ 1.4 +# SliTaz package receipt 1.5 + 1.6 +PACKAGE="locale-zh_CN" 1.7 +VERSION="1.1" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="Chinese Simplified locale pack." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +DEPENDS="glibc-base pcf-uming" 1.12 +BUILD_DEPENDS="glibc glibc-locale xorg-libX11" 1.13 +WEB_SITE="http://www.slitaz.org/" 1.14 + 1.15 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 1.16 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 1.17 + 1.18 +LOCALE="zh_CN" 1.19 +LOCALEDEF="zh_CN" 1.20 +CHARMAP="UTF-8" 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + # Ensure packages are built. 1.26 + for pkg in $CORE_PKGS 1.27 + do 1.28 + [ -d $WOK/$pkg/taz ] || tazwok cook $pkg 1.29 + done 1.30 +} 1.31 + 1.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.33 +# Genereted locale files are in /usr/lib/locale. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 1.37 + PKG_NAME="$PACKAGE" 1.38 + PKG_VERS="$VERSION" 1.39 + # Get the core packages messages. 1.40 + for pkg in $CORE_PKGS 1.41 + do 1.42 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 1.43 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 1.44 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 1.45 + $fs/usr/share/locale 1.46 + fi 1.47 + done 1.48 + PACKAGE="$PKG_NAME" 1.49 + VERSION="$PKG_VERS" 1.50 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8 1.51 +} 1.52 + 1.53 +# Post install to configure default locale. 1.54 +post_install() 1.55 +{ 1.56 + local root 1.57 + root=$1 1.58 + # locale.conf 1.59 + if [ -s $root/etc/locale.conf ]; then 1.60 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 1.61 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 1.62 + fi 1.63 +} 1.64 + 1.65 +# Back to C if it's the last used locale. 1.66 +post_remove() 1.67 +{ 1.68 + if grep -q $LOCALEDEF /etc/locale.conf; then 1.69 + echo "LANG=C" > /etc/locale.conf 1.70 + echo "LC_ALL=C" >> /etc/locale.conf 1.71 + fi 1.72 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/locale-zh_TW/receipt Mon Apr 27 21:03:55 2009 +0200 2.3 @@ -0,0 +1,69 @@ 2.4 +# SliTaz package receipt 2.5 + 2.6 +PACKAGE="locale-zh_TW" 2.7 +VERSION="1.1" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="Chinese Traditional locale pack." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +DEPENDS="glibc-base pcf-uming" 2.12 +BUILD_DEPENDS="glibc glibc-locale xorg-libX11" 2.13 +WEB_SITE="http://www.slitaz.org/" 2.14 + 2.15 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 2.16 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 2.17 + 2.18 +LOCALE="zh_TW" 2.19 +LOCALEDEF="zh_TW" 2.20 +CHARMAP="UTF-8" 2.21 + 2.22 +# Rules to configure and make the package. 2.23 +compile_rules() 2.24 +{ 2.25 + # Ensure packages are built. 2.26 + for pkg in $CORE_PKGS 2.27 + do 2.28 + [ -d $WOK/$pkg/taz ] || tazwok cook $pkg 2.29 + done 2.30 +} 2.31 + 2.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.33 +# Genereted locale files are in /usr/lib/locale. 2.34 +genpkg_rules() 2.35 +{ 2.36 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 2.37 + PKG_NAME="$PACKAGE" 2.38 + PKG_VERS="$VERSION" 2.39 + # Get the core packages messages. 2.40 + for pkg in $CORE_PKGS 2.41 + do 2.42 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 2.43 + if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 2.44 + cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 2.45 + $fs/usr/share/locale 2.46 + fi 2.47 + done 2.48 + PACKAGE="$PKG_NAME" 2.49 + VERSION="$PKG_VERS" 2.50 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF.UTF-8 2.51 +} 2.52 + 2.53 +# Post install to configure default locale. 2.54 +post_install() 2.55 +{ 2.56 + local root 2.57 + root=$1 2.58 + # locale.conf 2.59 + if [ -s $root/etc/locale.conf ]; then 2.60 + echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf 2.61 + echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf 2.62 + fi 2.63 +} 2.64 + 2.65 +# Back to C if it's the last used locale. 2.66 +post_remove() 2.67 +{ 2.68 + if grep -q $LOCALEDEF /etc/locale.conf; then 2.69 + echo "LANG=C" > /etc/locale.conf 2.70 + echo "LC_ALL=C" >> /etc/locale.conf 2.71 + fi 2.72 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/pcf-uming/receipt Mon Apr 27 21:03:55 2009 +0200 3.3 @@ -0,0 +1,18 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="pcf-uming" 3.7 +VERSION="1.0" 3.8 +CATEGORY="x-window" 3.9 +SHORT_DESC="Light asian fonts for X." 3.10 +MAINTAINER="pankso@slitaz.org" 3.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 3.12 +WEB_SITE="http://www.slitaz.org/" 3.13 +WGET_URL="http://mirror.slitaz.org/sources/fonts/$TARBALL" 3.14 + 3.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.16 +genpkg_rules() 3.17 +{ 3.18 + mkdir -p $fs/usr/share/fonts/X11/uming 3.19 + cp $src/uming.pcf.gz $fs/usr/share/fonts/X11/uming 3.20 + chown -R root.root $fs 3.21 +}