wok-current view glibc-dev/receipt @ rev 1094
linux-source: fix removal
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 17 11:23:56 2008 +0000 (2008-07-17) |
parents | 3e085751bf3a |
children | 4a057e1fc620 |
line source
1 # SliTaz package receipt.
3 PACKAGE="glibc-dev"
4 VERSION="2.7"
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 bash"
9 WANTED="glibc"
10 WEB_SITE="http://www.gnu.org/software/libc/"
11 SOURCES="glibc"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 #
15 # This package is part of the toolchain. We use list to mkdir and cp files.
16 #
17 genpkg_rules()
18 {
19 # Mass copy and then remove all files specified in stuff/base-files.list.
20 # We get the files from glibc-base. Locale files are in: glibc-locale.
21 cp -a $_pkg/* $fs
23 # Rm base files.
24 echo -n "Removing all base files..."
25 for file in `cat $WOK/glibc-base/taz/glibc-base-$VERSION/files.list`
26 do
27 rm -f ${fs}$file
28 done
29 rm -rf $fs/etc
30 rm -rf $fs/usr/share
31 status
33 # Rm locale.
34 echo -n "Removing all locale files..."
35 for file in `cat $WOK/glibc-locale/taz/glibc-locale-$VERSION/files.list`
36 do
37 rm -f ${fs}$file
38 done
39 rm -rf $fs/usr/lib/gconv
40 status
41 }