wok diff coreutils/receipt @ rev 122
Chandeg category for dev pkgs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jan 05 23:00:53 2008 +0100 (2008-01-05) |
parents | |
children | 384257552ba2 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/coreutils/receipt Sat Jan 05 23:00:53 2008 +0100 1.3 @@ -0,0 +1,60 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="coreutils" 1.7 +VERSION="6.9" 1.8 +CATEGORY="extra" 1.9 +SHORT_DESC="Utilities for using and setting the basic system." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://www.gnu.org/software/coreutils/" 1.13 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.14 + 1.15 +# Rules to configure and make the package. 1.16 +compile_rules() 1.17 +{ 1.18 + cd $src 1.19 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.20 + --mandir=/usr/share/man $CONFIGURE_ARGS 1.21 + make 1.22 + make DESTDIR=$PWD/_pkg install 1.23 +} 1.24 + 1.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 +# 1.27 +# This is a special package for installed system or developer. We only take 1.28 +# a fiew things, Busybox provide all the basic utilitie, but not for compiling. 1.29 +# But DO NOT ecrase a Busybox applet, remove it before with pre_install rules. 1.30 +# 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/usr/bin $fs/usr/share/locale 1.34 + # Utils... 1.35 + cp -a $_pkg/usr/bin/base64 $fs/usr/bin 1.36 + cp -a $_pkg/usr/bin/csplit $fs/usr/bin 1.37 + cp -a $_pkg/usr/bin/factor $fs/usr/bin 1.38 + cp -a $_pkg/usr/bin/fmt $fs/usr/bin 1.39 + cp -a $_pkg/usr/bin/join $fs/usr/bin 1.40 + cp -a $_pkg/usr/bin/od $fs/usr/bin 1.41 + cp -a $_pkg/usr/bin/paste $fs/usr/bin 1.42 + cp -a $_pkg/usr/bin/ptx $fs/usr/bin 1.43 + cp -a $_pkg/usr/bin/shred $fs/usr/bin 1.44 + cp -a $_pkg/usr/bin/shuf $fs/usr/bin 1.45 + cp -a $_pkg/usr/bin/split $fs/usr/bin 1.46 + cp -a $_pkg/usr/bin/users $fs/usr/bin 1.47 + strip -s $fs/usr/bin/* 2>/dev/null 1.48 + # Locale 1.49 + cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale 1.50 +} 1.51 + 1.52 +# Pre and post install commands for Tazpkg. 1.53 +# We must remove all Busybox symlink before installing. 1.54 +# 1.55 +pre_install() 1.56 +{ 1.57 + local root 1.58 + root=$1 1.59 + echo "Processing pre-install commands..." 1.60 + echo -n "Removing all Busybox reploaced utils... " 1.61 + rm -f $root/usr/bin/od $root/usr/bin/split 1.62 + status 1.63 +}