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