wok-stable view coreutils/receipt @ rev 10096

gfortran: fix path to gcc lib
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 19:15:10 2011 +0200 (2011-05-20)
parents 0b4cf0d9e1b5
children bf9d643b2c59
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="8.10"
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.xz"
9 WEB_SITE="http://www.gnu.org/software/coreutils/"
10 WGET_URL="ftp://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
11 DEPENDS="glibc-base gmp libcap"
12 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev m4 autoconf automake"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # NOTE: There does not seem to be a problem with sigcontext.h in Linux 2.6.29.3
21 # Hack to fix ls: expected specifier-qualifier-list before '__u64'
22 # Hack to change uname: so can see the cpu type your running on with uname
23 while read patch_file; do
24 if [ -f done.$patch_file ]; then
25 echo "Skipping $patch_file"
26 continue
27 fi
28 echo "Apply $patch_file"
29 patch -p1 < $stuff/$patch_file || return 1
30 touch done.$patch_file
31 done <<EOT
32 ls.u
33 uname.u
34 EOT
36 sed -i 's/1.10a/1.10.2/' configure.ac || return 1
37 sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1
39 ./configure && make && make install
41 # Restore original sigcontext.h
42 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 #
47 # This is a special package for installed system or developer. We only take
48 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
49 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
50 #
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/bin
54 # Utils...
55 cp -a $_pkg/usr/bin/base64 $fs/usr/bin
56 cp -a $_pkg/usr/bin/csplit $fs/usr/bin
57 cp -a $_pkg/usr/bin/factor $fs/usr/bin
58 cp -a $_pkg/usr/bin/fmt $fs/usr/bin
59 cp -a $_pkg/usr/bin/join $fs/usr/bin
60 cp -a $_pkg/usr/bin/od $fs/usr/bin
61 cp -a $_pkg/usr/bin/paste $fs/usr/bin
62 cp -a $_pkg/usr/bin/ptx $fs/usr/bin
63 cp -a $_pkg/usr/bin/shred $fs/usr/bin
64 cp -a $_pkg/usr/bin/shuf $fs/usr/bin
65 cp -a $_pkg/usr/bin/split $fs/usr/bin
66 cp -a $_pkg/usr/bin/users $fs/usr/bin
67 cp -a $_pkg/usr/bin/groups $fs/usr/bin
68 }
70 # Pre and post install commands for Tazpkg.
71 # We must remove all Busybox symlink before installing.
72 #
73 pre_install()
74 {
75 local root
76 root=$1
77 echo "Processing pre-install commands..."
78 echo -n "Removing all Busybox replaced utils... "
79 rm -f $root/usr/bin/od $root/usr/bin/split
80 status
81 }
83 post_remove()
84 {
85 ln -s /bin/busybox $1/usr/bin/od
86 ln -s /bin/busybox $1/usr/bin/split
87 }
89 clean_wok()
90 {
91 rm -rf $WOK/$PACKAGE-*/taz
92 rm -rf $WOK/$PACKAGE-*/process.log
93 }