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