wok view coreutils/receipt @ rev 16078
ARM: add dosfstools
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 15 03:41:10 2014 +0100 (2014-03-15) |
parents | 42dddfa83e87 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils"
4 VERSION="8.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="Utilities for using and setting the basic system."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/coreutils/"
11 WGET_URL="ftp://ftp.gnu.org/gnu/$PACKAGE/$TARBALL"
13 DEPENDS="glibc-base gmp libcap"
14 BUILD_DEPENDS="slitaz-toolchain libcap-dev gmp-dev m4 autoconf automake"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
21 # NOTE: There does not seem to be a problem with sigcontext.h in Linux 2.6.29.3
23 # Hack to fix ls: expected specifier-qualifier-list before '__u64'
24 # Hack to change uname: so can see the cpu type your running on with uname
25 while read patch_file; do
26 if [ -f done.$patch_file ]; then
27 echo "Skipping $patch_file"
28 continue
29 fi
30 echo "Apply $patch_file"
31 patch -p1 < $stuff/$patch_file || return 1
32 touch done.$patch_file
33 done <<EOT
34 ls.u
35 uname.u
36 EOT
38 sed -i 's/1.10a/1.10.2/' configure.ac || return 1
39 sed -i 's/dist-xz/dist-lzma/' configure.ac || return 1
41 ./configure $CONFIGURE_ARGS &&
42 make && make install
44 # Restore original sigcontext.h
45 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 #
50 # This is a special package for installed system or developer. We only take
51 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
52 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
53 #
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/bin $fs/bin
57 # Utils...
58 cp -a $install/usr/bin/base64 $fs/usr/bin
59 cp -a $install/usr/bin/csplit $fs/usr/bin
60 cp -a $install/usr/bin/factor $fs/usr/bin
61 cp -a $install/usr/bin/fmt $fs/usr/bin
62 cp -a $install/usr/bin/join $fs/usr/bin
63 cp -a $install/usr/bin/od $fs/usr/bin
64 cp -a $install/usr/bin/paste $fs/usr/bin
65 cp -a $install/usr/bin/ptx $fs/usr/bin
66 cp -a $install/usr/bin/shred $fs/usr/bin
67 cp -a $install/usr/bin/shuf $fs/usr/bin
68 cp -a $install/usr/bin/split $fs/usr/bin
69 cp -a $install/usr/bin/users $fs/usr/bin
70 cp -a $install/usr/bin/groups $fs/usr/bin
71 cp -a $install/usr/bin/cp $fs/usr/bin
72 }
74 # Pre and post install commands for Tazpkg.
75 # We must remove all Busybox symlink but cp before installing.
76 #
77 pre_install()
78 {
79 local root
80 root=$1
81 echo "Processing pre-install commands..."
82 # we keed busybox cp for installing the pkg
83 echo -n "Removing Busybox replaced utils... "
84 rm -f $root/usr/bin/od $root/usr/bin/split
85 status
86 }
88 post_install()
89 {
90 echo -n "Installing cp..."
91 rm $root/bin/cp &&
92 mv $root/usr/bin/cp $root/bin
93 status
94 }
96 post_remove()
97 {
98 ln -s ../../bin/busybox $1/usr/bin/od
99 ln -s ../../bin/busybox $1/usr/bin/split
100 rm -f $1/bin/cp
101 ln -s busybox $1/bin/cp
102 }
104 clean_wok()
105 {
106 rm -rf $WOK/$PACKAGE-*/taz
107 rm -rf $WOK/$PACKAGE-*/process.log
108 }