wok annotate locale-sl/receipt @ rev 2543
Remove bad receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 22 23:58:22 2009 +0100 (2009-03-22) |
parents | 165dfdf5e37e |
children | d2be5bd5d83e |
rev | line source |
---|---|
pankso@2304 | 1 # SliTaz package receipt |
pankso@2304 | 2 |
pankso@2304 | 3 PACKAGE="locale-sl" |
pankso@2304 | 4 VERSION="1.0" |
pankso@2304 | 5 CATEGORY="system-tools" |
pankso@2304 | 6 SHORT_DESC="Slovenian locale pack." |
pankso@2304 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2304 | 8 DEPENDS="glibc-base" |
pankso@2304 | 9 BUILD_DEPENDS="glibc-locale" |
pankso@2304 | 10 WEB_SITE="http://www.slitaz.org/" |
pankso@2304 | 11 |
pankso@2304 | 12 CORE_PKGS="asunder epdfview gpicview gparted glib gtk+ leafpad pcmanfm |
pankso@2304 | 13 lxpanel lxtask openbox alsaplayer xpad" |
pankso@2304 | 14 |
pankso@2304 | 15 LOCALE="sl" |
pankso@2304 | 16 LOCALEDEF="sl_SI" |
pankso@2304 | 17 CHARMAP="UTF-8" |
pankso@2304 | 18 |
pankso@2304 | 19 GLIBC_FILES=$WOK/glibc/glibc-2.7/_pkg |
pankso@2304 | 20 PKG_NAME="$PACKAGE" |
pankso@2304 | 21 PKG_VERS="$VERSION" |
pankso@2304 | 22 |
pankso@2304 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2304 | 24 # Install files in /usr/lib/locale. |
pankso@2304 | 25 # |
pankso@2304 | 26 genpkg_rules() |
pankso@2304 | 27 { |
pankso@2304 | 28 mkdir -p $fs/usr/share/locale/$LOCALE |
pankso@2304 | 29 |
pankso@2304 | 30 # Get the core apps messages. |
pankso@2304 | 31 for pkg in $CORE_PKGS |
pankso@2304 | 32 do |
pankso@2304 | 33 . $WOK/$pkg/receipt |
pankso@2304 | 34 if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then |
pankso@2304 | 35 cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \ |
pankso@2304 | 36 $fs/usr/share/locale |
pankso@2304 | 37 fi |
pankso@2304 | 38 done |
pankso@2304 | 39 |
pankso@2304 | 40 # Glibc locale. |
pankso@2315 | 41 #cp -a $GLIBC_FILES/usr/share/locale/$LOCALE $fs/usr/share/locale |
pankso@2304 | 42 |
pankso@2304 | 43 PACKAGE="$PKG_NAME" |
pankso@2304 | 44 VERSION="$PKG_VERS" |
pankso@2304 | 45 |
pankso@2304 | 46 # Gen locale files. |
pankso@2304 | 47 mkdir -p $fs/usr/lib/locale |
pankso@2304 | 48 localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/${LOCALEDEF}.UTF-8 |
pankso@2304 | 49 } |
pankso@2304 | 50 |
pankso@2304 | 51 # Post install to configure default locale. |
pankso@2304 | 52 post_install() |
pankso@2304 | 53 { |
pankso@2304 | 54 local root |
pankso@2304 | 55 root=$1 |
pankso@2304 | 56 # locale.conf |
pankso@2304 | 57 if [ -f $root/etc/locale.conf ]; then |
pankso@2304 | 58 echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf |
pankso@2304 | 59 echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf |
pankso@2304 | 60 fi |
pankso@2304 | 61 } |
pankso@2304 | 62 |
pankso@2304 | 63 # Back to C if it's the last used locale. |
pankso@2304 | 64 post_remove() |
pankso@2304 | 65 { |
pankso@2304 | 66 if grep -q $LOCALEDEF /etc/locale.conf; then |
pankso@2304 | 67 echo "LANG=C" > /etc/locale.conf |
pankso@2304 | 68 echo "LC_ALL=C" >> /etc/locale.conf |
pankso@2304 | 69 fi |
pankso@2304 | 70 } |