wok-6.x view locale-sv/receipt @ rev 10757
nanochess: get source in $SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 31 11:34:51 2011 +0200 (2011-05-31) |
parents | |
children | d630cec00483 |
line source
1 # SliTaz package receipt
3 PACKAGE="locale-sv"
4 VERSION="4.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Swedish locale pack."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
10 WEB_SITE="http://www.slitaz.org/"
12 LOCALE="sv"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 . $WOK/slitaz-i18n/stuff/locale-pack.functions
18 . $WOK/slitaz-i18n/stuff/locale-pack.conf
19 PKG_NAME="$PACKAGE"
20 PKG_VERS="$VERSION"
21 mk_locale_dir
22 get_slitaz_messages
23 get_core_messages
24 PACKAGE="$PKG_NAME"
25 VERSION="$PKG_VERS"
26 }
28 # Back to C if it's the last used locale.
29 post_remove()
30 {
31 if grep -q $LOCALEDEF /etc/locale.conf; then
32 echo "LANG=C" > /etc/locale.conf
33 echo "LC_ALL=C" >> /etc/locale.conf
34 fi
35 }