wok view glibc-base/receipt @ rev 597

Add localedef and change the way locale is set (all done by tazlocale or locale-pack)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 17 17:32:21 2008 +0200 (2008-04-17)
parents 01c15ddb603a
children 73016cb6e50c
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc-base"
4 VERSION="2.7"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU libc minimal libraries for SliTaz based system."
7 WANTED="glibc"
8 MAINTAINER="pankso@slitaz.org"
10 # Rules to gen a SliTaz package suitable for Tazpkg.
11 #
12 # Full glibc is very long to compile (see package glibc for more
13 # informations). You can use the precompiled package available on
14 # SliTaz mirror to build a distro without recompiling glibc.
15 #
16 genpkg_rules()
17 {
18 # Mkdir's.
19 for dir in `cat stuff/mkdir.list`
20 do
21 mkdir -p ${fs}$dir
22 done
23 # Copy all files specified in stuff/files.list. We get the files
24 # from glibc package.
25 for file in `cat stuff/wanted-files.list`
26 do
27 cp -a ${_pkg}$file ${fs}$file
28 done
30 # Gen locale files (done by tazlocale. Some lang needs locale-pack).
31 #
32 #mkdir -p $fs/usr/lib/locale
33 #localedef -i fr_CH -c -f ISO-8859-1 $fs/usr/lib/locale/fr_CH
34 #localedef -i fr_FR -c -f ISO-8859-1 $fs/usr/lib/locale/fr_FR
35 #localedef -i en_US -c -f ISO-8859-1 $fs/usr/lib/locale/en_US
36 #localedef -i es_MX -c -f ISO-8859-1 $fs/usr/lib/locale/es_MX
37 }
39 # Call ldconfig and remove old glibc-2.3.6 files.
40 post_install()
41 {
42 local root
43 root=$1
44 ldconfig
45 rm -f $root/lib/*2.3.6.so
46 rm -f $root/usr/lib/locale/locale-archive
47 }