wok annotate coreutils/receipt @ rev 2513
a*-c*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 16 21:35:18 2009 +0000 (2009-03-16) |
parents | ee932957209b |
children | 2a1d27b84c1a |
rev | line source |
---|---|
pankso@15 | 1 # SliTaz package receipt. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
pankso@2344 | 4 VERSION="7.1" |
pankso@211 | 5 CATEGORY="system-tools" |
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 |
erjo@174 | 44 cp -a $_pkg/usr/bin/groups $fs/usr/bin |
pankso@15 | 45 strip -s $fs/usr/bin/* 2>/dev/null |
pankso@15 | 46 # Locale |
pankso@15 | 47 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@15 | 48 } |
pankso@15 | 49 |
pankso@15 | 50 # Pre and post install commands for Tazpkg. |
pankso@15 | 51 # We must remove all Busybox symlink before installing. |
pankso@15 | 52 # |
pankso@15 | 53 pre_install() |
pankso@15 | 54 { |
pankso@15 | 55 local root |
pankso@15 | 56 root=$1 |
pankso@15 | 57 echo "Processing pre-install commands..." |
pankso@15 | 58 echo -n "Removing all Busybox reploaced utils... " |
pankso@15 | 59 rm -f $root/usr/bin/od $root/usr/bin/split |
pankso@15 | 60 status |
pankso@15 | 61 } |