wok-current view coreutils/receipt @ rev 969

Up: popt (1.14)
author Christophe Lincoln <pankso@slitaz.org>
date Mon Jun 30 12:15:18 2008 +0200 (2008-06-30)
parents cf22fee17710
children a981e582687d
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="6.12"
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 }