wok-4.x view coreutils/receipt @ rev 3570

Depends: bazaar
author Matthew Sheets <rcx@zoominternet.net>
date Thu Jun 25 11:02:39 2009 +0000 (2009-06-25)
parents 2a1d27b84c1a
children 27dbd5251d69
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="7.4"
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"
11 DEPENDS="libcap"
12 BUILD_DEPENDS="libcap-dev gmp-dev"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Hack to fix ls: expected specifier-qualifier-list before '__u64'
20 # We are not patching the original file, just fake to compile
21 # coreutils.
22 rm -f /usr/include/asm/sigcontext.h.bak
23 mv /usr/include/asm/sigcontext.h /usr/include/asm/sigcontext.h.bak || exit 1
24 cp ../stuff/sigcontext.h /usr/include/asm
26 sed -i 's/1.10a/1.10.2/' configure.ac || exit 1
27 sed -i 's/dist-xz/dist-lzma/' configure.ac || exit 1
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 --enable-no-install-program=kill,uptime,ls \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$PWD/_pkg install &&
38 # Restore original sigcontext.h
39 mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 #
44 # This is a special package for installed system or developer. We only take
45 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
46 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
47 #
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/bin
51 # Utils...
52 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
53 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
54 cp -a $_pkg/usr/bin/factor $fs/usr/bin
55 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
56 cp -a $_pkg/usr/bin/join $fs/usr/bin
57 cp -a $_pkg/usr/bin/od $fs/usr/bin
58 cp -a $_pkg/usr/bin/paste $fs/usr/bin
59 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
60 cp -a $_pkg/usr/bin/shred $fs/usr/bin
61 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
62 cp -a $_pkg/usr/bin/split $fs/usr/bin
63 cp -a $_pkg/usr/bin/users $fs/usr/bin
64 cp -a $_pkg/usr/bin/groups $fs/usr/bin
65 }
67 # Pre and post install commands for Tazpkg.
68 # We must remove all Busybox symlink before installing.
69 #
70 pre_install()
71 {
72 local root
73 root=$1
74 echo "Processing pre-install commands..."
75 echo -n "Removing all Busybox replaced utils... "
76 rm -f $root/usr/bin/od $root/usr/bin/split
77 status
78 }
80 post_remove()
81 {
82 ln -s /bin/busybox /usr/bin/od
83 ln -s /bin/busybox /usr/bin/split
84 }