wok-6.x view coreutils/receipt @ rev 3028
mesa: update build-depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 12 01:50:43 2009 +0200 (2009-05-12) |
parents | ee932957209b |
children | 2a1d27b84c1a |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="7.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for using and setting the basic system."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 # Rules to configure and make the package.
13 compile_rules()
14 {
15 cd $src
16 ./configure --prefix=/usr --infodir=/usr/share/info \
17 --mandir=/usr/share/man $CONFIGURE_ARGS
18 make
19 make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 #
24 # This is a special package for installed system or developer. We only take
25 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
26 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
27 #
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/share/locale
31 # Utils...
32 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
33 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
34 cp -a $_pkg/usr/bin/factor $fs/usr/bin
35 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
36 cp -a $_pkg/usr/bin/join $fs/usr/bin
37 cp -a $_pkg/usr/bin/od $fs/usr/bin
38 cp -a $_pkg/usr/bin/paste $fs/usr/bin
39 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
40 cp -a $_pkg/usr/bin/shred $fs/usr/bin
41 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
42 cp -a $_pkg/usr/bin/split $fs/usr/bin
43 cp -a $_pkg/usr/bin/users $fs/usr/bin
44 cp -a $_pkg/usr/bin/groups $fs/usr/bin
45 strip -s $fs/usr/bin/* 2>/dev/null
46 # Locale
47 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
48 }
50 # Pre and post install commands for Tazpkg.
51 # We must remove all Busybox symlink before installing.
52 #
53 pre_install()
54 {
55 local root
56 root=$1
57 echo "Processing pre-install commands..."
58 echo -n "Removing all Busybox reploaced utils... "
59 rm -f $root/usr/bin/od $root/usr/bin/split
60 status
61 }