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