wok view coreutils/receipt @ rev 15

Add : autoconf, automake, bison, coreutils
author Christophe Lincoln <pankso@slitaz.org>
date Tue Dec 18 13:21:08 2007 +0100 (2007-12-18)
parents
children 384257552ba2
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="6.9"
5 CATEGORY="extra"
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 strip -s $fs/usr/bin/* 2>/dev/null
45 # Locale
46 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
47 }
49 # Pre and post install commands for Tazpkg.
50 # We must remove all Busybox symlink before installing.
51 #
52 pre_install()
53 {
54 local root
55 root=$1
56 echo "Processing pre-install commands..."
57 echo -n "Removing all Busybox reploaced utils... "
58 rm -f $root/usr/bin/od $root/usr/bin/split
59 status
60 }