wok view glibc-base/receipt @ rev 9675

nano: clean-up receipt
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 04 20:15:33 2011 +0200 (2011-05-04)
parents f8cd3eece9c0
children 174e398ee0ab
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc-base"
4 VERSION="2.13"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU libc minimal libraries and UTF-8 support for SliTaz."
7 WEB_SITE="http://www.gnu.org/software/libc/"
8 WANTED="glibc"
9 MAINTAINER="pankso@slitaz.org"
11 DEFAULT_LOCALE="de_DE en_US en_GB es_ES fr_FR pt_BR pt_PT ru_RU"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 #
15 # Full glibc is very long to compile (see package glibc for more
16 # informations). You can use the precompiled package available on
17 # SliTaz mirror to build a distro without recompiling glibc.
18 #
19 genpkg_rules()
20 {
21 # Mkdir's.
22 for dir in `cat stuff/mkdir.list`
23 do
24 mkdir -p ${fs}$dir
25 done
26 # Copy all files specified in stuff/files.list. We get the files
27 # from glibc package.
28 for file in `cat stuff/wanted-files.list`
29 do
30 cp -a ${_pkg}$file ${fs}$file
31 done
32 # i18n
33 for i in $DEFAULT_LOCALE
34 do
35 cp $_pkg/usr/share/i18n/locales/$i $fs/usr/share/i18n/locales
36 done
37 }
39 # Call ldconfig and remove old glibc-2.3.6 (slitaz 1.0) and glibc-2.7
40 # files.
41 pre_install()
42 {
43 rm -f $1/usr/lib/locale/locale-archive
44 }
46 post_install()
47 {
48 for i in $(grep $VERSION.so $1/var/lib/tazpkg/installed/files.list); do
49 for lib in $1$(echo $i | sed "s/$VERSION/*/"); do
50 [ $lib == $1$i ] && continue
51 rm -f $lib
52 done
53 done
54 }