wok-6.x rev 2702
Up: locale-* (1.1) - Include more apps and use the last glibc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 22 18:26:22 2009 +0200 (2009-04-22) |
parents | 4a057e1fc620 |
children | 50fc996bff5f |
files | locale-cs/receipt locale-de/receipt locale-es/receipt locale-id/receipt locale-it/receipt locale-pt_BR/receipt locale-ru/receipt locale-sl/receipt |
line diff
1.1 --- a/locale-cs/receipt Wed Apr 22 18:22:46 2009 +0200 1.2 +++ b/locale-cs/receipt Wed Apr 22 18:26:22 2009 +0200 1.3 @@ -1,25 +1,21 @@ 1.4 # SliTaz package receipt 1.5 1.6 PACKAGE="locale-cs" 1.7 -VERSION="1.0" 1.8 +VERSION="1.1" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Czech locale pack." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 DEPENDS="glibc-base" 1.13 BUILD_DEPENDS="glibc glibc-locale" 1.14 WEB_SITE="http://www.slitaz.org/" 1.15 -SOURCES="glibc" 1.16 1.17 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 1.18 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 1.19 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 1.20 1.21 LOCALE="cs" 1.22 LOCALEDEF="cs_CZ" 1.23 CHARMAP="ISO-8859-2" 1.24 1.25 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 1.26 -PKG_NAME="$PACKAGE" 1.27 -PKG_VERS="$VERSION" 1.28 - 1.29 # Rules to configure and make the package. 1.30 compile_rules() 1.31 { 1.32 @@ -31,30 +27,23 @@ 1.33 } 1.34 1.35 # Rules to gen a SliTaz package suitable for Tazpkg. 1.36 -# Install files in /usr/lib/locale. 1.37 -# 1.38 +# Genereted locale files are in /usr/lib/locale. 1.39 genpkg_rules() 1.40 { 1.41 - mkdir -p $fs/usr/share/locale/$LOCALE 1.42 - 1.43 - # Get the core apps messages. 1.44 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 1.45 + PKG_NAME="$PACKAGE" 1.46 + PKG_VERS="$VERSION" 1.47 + # Get the core packages messages. 1.48 for pkg in $CORE_PKGS 1.49 do 1.50 - . $WOK/$pkg/receipt 1.51 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 1.52 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 1.53 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 1.54 $fs/usr/share/locale 1.55 fi 1.56 done 1.57 - 1.58 - # Glibc locale. 1.59 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 1.60 - 1.61 PACKAGE="$PKG_NAME" 1.62 VERSION="$PKG_VERS" 1.63 - 1.64 - # Gen locale files. 1.65 - mkdir -p $fs/usr/lib/locale 1.66 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 1.67 } 1.68
2.1 --- a/locale-de/receipt Wed Apr 22 18:22:46 2009 +0200 2.2 +++ b/locale-de/receipt Wed Apr 22 18:26:22 2009 +0200 2.3 @@ -1,7 +1,7 @@ 2.4 # SliTaz package receipt 2.5 2.6 PACKAGE="locale-de" 2.7 -VERSION="1.0" 2.8 +VERSION="1.1" 2.9 CATEGORY="system-tools" 2.10 SHORT_DESC="German locale pack." 2.11 MAINTAINER="pankso@slitaz.org" 2.12 @@ -9,16 +9,13 @@ 2.13 BUILD_DEPENDS="glibc glibc-locale" 2.14 WEB_SITE="http://www.slitaz.org/" 2.15 2.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 2.17 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 2.18 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 2.19 2.20 LOCALE="de" 2.21 LOCALEDEF="de_DE" 2.22 CHARMAP="ISO-8859-1" 2.23 2.24 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 2.25 -PKG_NAME="$PACKAGE" 2.26 -PKG_VERS="$VERSION" 2.27 - 2.28 # Rules to configure and make the package. 2.29 compile_rules() 2.30 { 2.31 @@ -30,30 +27,23 @@ 2.32 } 2.33 2.34 # Rules to gen a SliTaz package suitable for Tazpkg. 2.35 -# Install files in /usr/lib/locale. 2.36 -# 2.37 +# Genereted locale files are in /usr/lib/locale. 2.38 genpkg_rules() 2.39 { 2.40 - mkdir -p $fs/usr/share/locale/$LOCALE 2.41 - 2.42 - # Get the core apps messages. 2.43 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 2.44 + PKG_NAME="$PACKAGE" 2.45 + PKG_VERS="$VERSION" 2.46 + # Get the core packages messages. 2.47 for pkg in $CORE_PKGS 2.48 do 2.49 - . $WOK/$pkg/receipt 2.50 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 2.51 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 2.52 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 2.53 $fs/usr/share/locale 2.54 fi 2.55 done 2.56 - 2.57 - # Glibc locale. 2.58 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 2.59 - 2.60 PACKAGE="$PKG_NAME" 2.61 VERSION="$PKG_VERS" 2.62 - 2.63 - # Gen locale files. 2.64 - mkdir -p $fs/usr/lib/locale 2.65 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 2.66 } 2.67
3.1 --- a/locale-es/receipt Wed Apr 22 18:22:46 2009 +0200 3.2 +++ b/locale-es/receipt Wed Apr 22 18:26:22 2009 +0200 3.3 @@ -1,7 +1,7 @@ 3.4 # SliTaz package receipt 3.5 3.6 PACKAGE="locale-es" 3.7 -VERSION="1.0" 3.8 +VERSION="1.1" 3.9 CATEGORY="system-tools" 3.10 SHORT_DESC="Spanish locale pack." 3.11 MAINTAINER="pankso@slitaz.org" 3.12 @@ -9,16 +9,13 @@ 3.13 BUILD_DEPENDS="glibc glibc-locale" 3.14 WEB_SITE="http://www.slitaz.org/" 3.15 3.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 3.17 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 3.18 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 3.19 3.20 LOCALE="es" 3.21 LOCALEDEF="es_ES" 3.22 CHARMAP="ISO-8859-1" 3.23 3.24 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 3.25 -PKG_NAME="$PACKAGE" 3.26 -PKG_VERS="$VERSION" 3.27 - 3.28 # Rules to configure and make the package. 3.29 compile_rules() 3.30 { 3.31 @@ -30,30 +27,23 @@ 3.32 } 3.33 3.34 # Rules to gen a SliTaz package suitable for Tazpkg. 3.35 -# Install files in /usr/lib/locale. 3.36 -# 3.37 +# Genereted locale files are in /usr/lib/locale. 3.38 genpkg_rules() 3.39 { 3.40 - mkdir -p $fs/usr/share/locale/$LOCALE 3.41 - 3.42 - # Get the core apps messages. 3.43 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 3.44 + PKG_NAME="$PACKAGE" 3.45 + PKG_VERS="$VERSION" 3.46 + # Get the core packages messages. 3.47 for pkg in $CORE_PKGS 3.48 do 3.49 - . $WOK/$pkg/receipt 3.50 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 3.51 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 3.52 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 3.53 $fs/usr/share/locale 3.54 fi 3.55 done 3.56 - 3.57 - # Glibc locale. 3.58 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 3.59 - 3.60 PACKAGE="$PKG_NAME" 3.61 VERSION="$PKG_VERS" 3.62 - 3.63 - # Gen locale files. 3.64 - mkdir -p $fs/usr/lib/locale 3.65 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 3.66 } 3.67
4.1 --- a/locale-id/receipt Wed Apr 22 18:22:46 2009 +0200 4.2 +++ b/locale-id/receipt Wed Apr 22 18:26:22 2009 +0200 4.3 @@ -1,7 +1,7 @@ 4.4 # SliTaz package receipt 4.5 4.6 PACKAGE="locale-id" 4.7 -VERSION="1.0" 4.8 +VERSION="1.1" 4.9 CATEGORY="system-tools" 4.10 SHORT_DESC="Indonesian locale pack." 4.11 MAINTAINER="pankso@slitaz.org" 4.12 @@ -9,16 +9,13 @@ 4.13 BUILD_DEPENDS="glibc glibc-locale" 4.14 WEB_SITE="http://www.slitaz.org/" 4.15 4.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 4.17 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 4.18 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 4.19 4.20 LOCALE="id" 4.21 LOCALEDEF="id_ID" 4.22 CHARMAP="ISO-8859-1" 4.23 4.24 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 4.25 -PKG_NAME="$PACKAGE" 4.26 -PKG_VERS="$VERSION" 4.27 - 4.28 # Rules to configure and make the package. 4.29 compile_rules() 4.30 { 4.31 @@ -30,30 +27,23 @@ 4.32 } 4.33 4.34 # Rules to gen a SliTaz package suitable for Tazpkg. 4.35 -# Install files in /usr/lib/locale. 4.36 -# 4.37 +# Genereted locale files are in /usr/lib/locale. 4.38 genpkg_rules() 4.39 { 4.40 - mkdir -p $fs/usr/share/locale/$LOCALE 4.41 - 4.42 - # Get the core apps messages. 4.43 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 4.44 + PKG_NAME="$PACKAGE" 4.45 + PKG_VERS="$VERSION" 4.46 + # Get the core packages messages. 4.47 for pkg in $CORE_PKGS 4.48 do 4.49 - . $WOK/$pkg/receipt 4.50 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 4.51 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 4.52 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 4.53 $fs/usr/share/locale 4.54 fi 4.55 done 4.56 - 4.57 - # Glibc locale. 4.58 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 4.59 - 4.60 PACKAGE="$PKG_NAME" 4.61 VERSION="$PKG_VERS" 4.62 - 4.63 - # Gen locale files. 4.64 - mkdir -p $fs/usr/lib/locale 4.65 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 4.66 } 4.67
5.1 --- a/locale-it/receipt Wed Apr 22 18:22:46 2009 +0200 5.2 +++ b/locale-it/receipt Wed Apr 22 18:26:22 2009 +0200 5.3 @@ -1,7 +1,7 @@ 5.4 # SliTaz package receipt 5.5 5.6 PACKAGE="locale-it" 5.7 -VERSION="1.0" 5.8 +VERSION="1.1" 5.9 CATEGORY="system-tools" 5.10 SHORT_DESC="Italian locale pack." 5.11 MAINTAINER="pankso@slitaz.org" 5.12 @@ -9,16 +9,13 @@ 5.13 BUILD_DEPENDS="glibc glibc-locale" 5.14 WEB_SITE="http://www.slitaz.org/" 5.15 5.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 5.17 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 5.18 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 5.19 5.20 LOCALE="it" 5.21 LOCALEDEF="it_IT" 5.22 CHARMAP="ISO-8859-1" 5.23 5.24 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 5.25 -PKG_NAME="$PACKAGE" 5.26 -PKG_VERS="$VERSION" 5.27 - 5.28 # Rules to configure and make the package. 5.29 compile_rules() 5.30 { 5.31 @@ -30,30 +27,23 @@ 5.32 } 5.33 5.34 # Rules to gen a SliTaz package suitable for Tazpkg. 5.35 -# Install files in /usr/lib/locale. 5.36 -# 5.37 +# Genereted locale files are in /usr/lib/locale. 5.38 genpkg_rules() 5.39 { 5.40 - mkdir -p $fs/usr/share/locale/$LOCALE 5.41 - 5.42 - # Get the core apps messages. 5.43 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 5.44 + PKG_NAME="$PACKAGE" 5.45 + PKG_VERS="$VERSION" 5.46 + # Get the core packages messages. 5.47 for pkg in $CORE_PKGS 5.48 do 5.49 - . $WOK/$pkg/receipt 5.50 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 5.51 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 5.52 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 5.53 $fs/usr/share/locale 5.54 fi 5.55 done 5.56 - 5.57 - # Glibc locale. 5.58 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 5.59 - 5.60 PACKAGE="$PKG_NAME" 5.61 VERSION="$PKG_VERS" 5.62 - 5.63 - # Gen locale files. 5.64 - mkdir -p $fs/usr/lib/locale 5.65 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 5.66 } 5.67
6.1 --- a/locale-pt_BR/receipt Wed Apr 22 18:22:46 2009 +0200 6.2 +++ b/locale-pt_BR/receipt Wed Apr 22 18:26:22 2009 +0200 6.3 @@ -1,7 +1,7 @@ 6.4 # SliTaz package receipt 6.5 6.6 PACKAGE="locale-pt_BR" 6.7 -VERSION="1.0" 6.8 +VERSION="1.1" 6.9 CATEGORY="system-tools" 6.10 SHORT_DESC="Brazilian locale pack." 6.11 MAINTAINER="pankso@slitaz.org" 6.12 @@ -9,16 +9,13 @@ 6.13 BUILD_DEPENDS="glibc glibc-locale" 6.14 WEB_SITE="http://www.slitaz.org/" 6.15 6.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 6.17 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 6.18 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 6.19 6.20 LOCALE="pt_BR" 6.21 LOCALEDEF="pt_BR" 6.22 CHARMAP="ISO-8859-1" 6.23 6.24 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 6.25 -PKG_NAME="$PACKAGE" 6.26 -PKG_VERS="$VERSION" 6.27 - 6.28 # Rules to configure and make the package. 6.29 compile_rules() 6.30 { 6.31 @@ -30,30 +27,23 @@ 6.32 } 6.33 6.34 # Rules to gen a SliTaz package suitable for Tazpkg. 6.35 -# Install files in /usr/lib/locale. 6.36 -# 6.37 +# Genereted locale files are in /usr/lib/locale. 6.38 genpkg_rules() 6.39 { 6.40 - mkdir -p $fs/usr/share/locale/$LOCALE 6.41 - 6.42 - # Get the core apps messages. 6.43 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 6.44 + PKG_NAME="$PACKAGE" 6.45 + PKG_VERS="$VERSION" 6.46 + # Get the core packages messages. 6.47 for pkg in $CORE_PKGS 6.48 do 6.49 - . $WOK/$pkg/receipt 6.50 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 6.51 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 6.52 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 6.53 $fs/usr/share/locale 6.54 fi 6.55 done 6.56 - 6.57 - # Glibc locale. 6.58 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 6.59 - 6.60 PACKAGE="$PKG_NAME" 6.61 VERSION="$PKG_VERS" 6.62 - 6.63 - # Gen locale files. 6.64 - mkdir -p $fs/usr/lib/locale 6.65 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 6.66 } 6.67
7.1 --- a/locale-ru/receipt Wed Apr 22 18:22:46 2009 +0200 7.2 +++ b/locale-ru/receipt Wed Apr 22 18:26:22 2009 +0200 7.3 @@ -1,7 +1,7 @@ 7.4 # SliTaz package receipt 7.5 7.6 PACKAGE="locale-ru" 7.7 -VERSION="1.0" 7.8 +VERSION="1.1" 7.9 CATEGORY="system-tools" 7.10 SHORT_DESC="Russian locale pack." 7.11 MAINTAINER="pankso@slitaz.org" 7.12 @@ -9,16 +9,13 @@ 7.13 BUILD_DEPENDS="glibc glibc-locale xorg-libX11" 7.14 WEB_SITE="http://www.slitaz.org/" 7.15 7.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm xpad" 7.17 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 7.18 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 7.19 7.20 LOCALE="ru" 7.21 LOCALEDEF="ru_RU" 7.22 CHARMAP="KOI8-RU" 7.23 7.24 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 7.25 -PKG_NAME="$PACKAGE" 7.26 -PKG_VERS="$VERSION" 7.27 - 7.28 # Rules to configure and make the package. 7.29 compile_rules() 7.30 { 7.31 @@ -30,30 +27,23 @@ 7.32 } 7.33 7.34 # Rules to gen a SliTaz package suitable for Tazpkg. 7.35 -# Install files in /usr/lib/locale. 7.36 -# 7.37 +# Genereted locale files are in /usr/lib/locale. 7.38 genpkg_rules() 7.39 { 7.40 - mkdir -p $fs/usr/share/locale/$LOCALE 7.41 - 7.42 - # Get the core apps messages. 7.43 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 7.44 + PKG_NAME="$PACKAGE" 7.45 + PKG_VERS="$VERSION" 7.46 + # Get the core packages messages. 7.47 for pkg in $CORE_PKGS 7.48 do 7.49 - . $WOK/$pkg/receipt 7.50 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 7.51 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 7.52 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 7.53 $fs/usr/share/locale 7.54 fi 7.55 done 7.56 - 7.57 - # Glibc locale. 7.58 - cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 7.59 - 7.60 PACKAGE="$PKG_NAME" 7.61 VERSION="$PKG_VERS" 7.62 - 7.63 - # Gen locale files. 7.64 - mkdir -p $fs/usr/lib/locale 7.65 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 7.66 } 7.67
8.1 --- a/locale-sl/receipt Wed Apr 22 18:22:46 2009 +0200 8.2 +++ b/locale-sl/receipt Wed Apr 22 18:26:22 2009 +0200 8.3 @@ -1,7 +1,7 @@ 8.4 # SliTaz package receipt 8.5 8.6 PACKAGE="locale-sl" 8.7 -VERSION="1.0" 8.8 +VERSION="1.1" 8.9 CATEGORY="system-tools" 8.10 SHORT_DESC="Slovenian locale pack." 8.11 MAINTAINER="pankso@slitaz.org" 8.12 @@ -9,43 +9,42 @@ 8.13 BUILD_DEPENDS="glibc-locale" 8.14 WEB_SITE="http://www.slitaz.org/" 8.15 8.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm 8.17 - lxpanel lxtask openbox alsaplayer xpad" 8.18 +CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \ 8.19 +glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad" 8.20 8.21 LOCALE="sl" 8.22 LOCALEDEF="sl_SI" 8.23 CHARMAP="UTF-8" 8.24 8.25 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 8.26 -PKG_NAME="$PACKAGE" 8.27 -PKG_VERS="$VERSION" 8.28 +# Rules to configure and make the package. 8.29 +compile_rules() 8.30 +{ 8.31 + # Ensure packages are built. 8.32 + for pkg in $CORE_PKGS 8.33 + do 8.34 + [ -d $WOK/$pkg/taz ] || tazwok cook $pkg 8.35 + done 8.36 +} 8.37 8.38 # Rules to gen a SliTaz package suitable for Tazpkg. 8.39 -# Install files in /usr/lib/locale. 8.40 -# 8.41 +# Genereted locale files are in /usr/lib/locale. 8.42 genpkg_rules() 8.43 { 8.44 - mkdir -p $fs/usr/share/locale/$LOCALE 8.45 - 8.46 - # Get the core apps messages. 8.47 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 8.48 + PKG_NAME="$PACKAGE" 8.49 + PKG_VERS="$VERSION" 8.50 + # Get the core packages messages. 8.51 for pkg in $CORE_PKGS 8.52 do 8.53 - . $WOK/$pkg/receipt 8.54 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 8.55 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 8.56 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 8.57 $fs/usr/share/locale 8.58 fi 8.59 done 8.60 - 8.61 - # Glibc locale. 8.62 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 8.63 - 8.64 PACKAGE="$PKG_NAME" 8.65 VERSION="$PKG_VERS" 8.66 - 8.67 - # Gen locale files. 8.68 - mkdir -p $fs/usr/lib/locale 8.69 - localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/${LOCALEDEF}.UTF-8 8.70 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 8.71 } 8.72 8.73 # Post install to configure default locale.