wok diff locale-sl/receipt @ rev 2777
linux: Fix 'BUG: Int 14: CR2 ffd41000' on ASUS P5QL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Apr 27 13:47:44 2009 +0200 (2009-04-27) |
parents | c8cf74f5d243 |
children | f3f6bcae6367 |
line diff
1.1 --- a/locale-sl/receipt Wed Feb 25 18:22:54 2009 +0100 1.2 +++ b/locale-sl/receipt Mon Apr 27 13:47:44 2009 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt 1.5 1.6 PACKAGE="locale-sl" 1.7 -VERSION="1.0" 1.8 +VERSION="1.1" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Slovenian locale pack." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 @@ -9,43 +9,42 @@ 1.13 BUILD_DEPENDS="glibc-locale" 1.14 WEB_SITE="http://www.slitaz.org/" 1.15 1.16 -CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm 1.17 - lxpanel lxtask openbox alsaplayer 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="sl" 1.22 LOCALEDEF="sl_SI" 1.23 CHARMAP="UTF-8" 1.24 1.25 -GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg 1.26 -PKG_NAME="$PACKAGE" 1.27 -PKG_VERS="$VERSION" 1.28 +# Rules to configure and make the package. 1.29 +compile_rules() 1.30 +{ 1.31 + # Ensure packages are built. 1.32 + for pkg in $CORE_PKGS 1.33 + do 1.34 + [ -d $WOK/$pkg/taz ] || tazwok cook $pkg 1.35 + done 1.36 +} 1.37 1.38 # Rules to gen a SliTaz package suitable for Tazpkg. 1.39 -# Install files in /usr/lib/locale. 1.40 -# 1.41 +# Genereted locale files are in /usr/lib/locale. 1.42 genpkg_rules() 1.43 { 1.44 - mkdir -p $fs/usr/share/locale/$LOCALE 1.45 - 1.46 - # Get the core apps messages. 1.47 + mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale 1.48 + PKG_NAME="$PACKAGE" 1.49 + PKG_VERS="$VERSION" 1.50 + # Get the core packages messages. 1.51 for pkg in $CORE_PKGS 1.52 do 1.53 - . $WOK/$pkg/receipt 1.54 + [ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt 1.55 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then 1.56 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ 1.57 $fs/usr/share/locale 1.58 fi 1.59 done 1.60 - 1.61 - # Glibc locale. 1.62 - #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale 1.63 - 1.64 PACKAGE="$PKG_NAME" 1.65 VERSION="$PKG_VERS" 1.66 - 1.67 - # Gen locale files. 1.68 - mkdir -p $fs/usr/lib/locale 1.69 - localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/${LOCALEDEF}.UTF-8 1.70 + localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF 1.71 } 1.72 1.73 # Post install to configure default locale.