wok-next view glibc-dev/receipt @ rev 9118
glibc-dev: ensure necessary packages are built
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 05 13:14:44 2011 +0100 (2011-03-05) |
parents | 22bb1e6e0ef0 |
children | 14f4c5e142ff |
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc-dev"
4 VERSION="2.13"
5 CATEGORY="development"
6 SHORT_DESC="The GNU C libraries devel files (Part of SliTaz toolchain)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base"
9 WANTED="glibc"
10 WEB_SITE="http://www.gnu.org/software/libc/"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 #
14 # This package is part of the toolchain. We use list to mkdir and cp files.
15 #
16 genpkg_rules()
17 {
18 # Mass copy and then remove all files specified in stuff/base-files.list.
19 # We get the files from glibc-base. Locale files are in: glibc-locale.
20 cp -a $_pkg/* $fs
22 # Rm base files.
23 echo -n "Removing all base files..."
24 [ -s $WOK/glibc-base/taz/glibc-base-$VERSION/files.list ] ||
25 tazwok genpkg glibc-base > /dev/null 2>&1
26 for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list`
27 do
28 rm -f ${fs}$file
29 done
30 rm -rf $fs/etc
31 rm -rf $fs/usr/share
32 status
34 # Rm locale.
35 echo -n "Removing all locale files..."
36 [ -s $WOK/glibc-base/taz/glibc-locale-$VERSION/files.list ] ||
37 tazwok genpkg glibc-locale > /dev/null 2>&1
38 for file in `cat $WOK/glibc-locale/taz/glibc-locale-$VERSION/files.list`
39 do
40 rm -f ${fs}$file
41 done
42 rm -rf $fs/usr/lib/gconv
43 status
44 }