wok view coreutils/receipt @ rev 19136
vlc: add locale (thanks sonycrokett2000), again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 17 19:03:35 2016 +0200 (2016-05-17) |
parents | 9e01bc6321ea |
children | 1d0123efe74c |
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 # 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 $CONFIGURE_ARGS &&
40 make && make install
42 # Restore original sigcontext.h
43 # mv -f /usr/include/asm/sigcontext.h.bak /usr/include/asm/sigcontext.h
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 #
48 # This is a special package for installed system or developer. We only take
49 # a fiew things, Busybox provide all the basic utilitie, but not for compiling.
50 # But DO NOT ecrase a Busybox applet, remove it before with pre_install rules.
51 #
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/bin $fs/bin
55 # Utils...
56 cp -a $install/usr/bin/base64 $fs/usr/bin
57 cp -a $install/usr/bin/csplit $fs/usr/bin
58 cp -a $install/usr/bin/factor $fs/usr/bin
59 cp -a $install/usr/bin/fmt $fs/usr/bin
60 cp -a $install/usr/bin/join $fs/usr/bin
61 cp -a $install/usr/bin/od $fs/usr/bin
62 cp -a $install/usr/bin/paste $fs/usr/bin
63 cp -a $install/usr/bin/ptx $fs/usr/bin
64 cp -a $install/usr/bin/shred $fs/usr/bin
65 cp -a $install/usr/bin/shuf $fs/usr/bin
66 cp -a $install/usr/bin/split $fs/usr/bin
67 cp -a $install/usr/bin/users $fs/usr/bin
68 cp -a $install/usr/bin/groups $fs/usr/bin
69 cp -a $install/usr/bin/cp $fs/usr/bin
70 }
72 post_install()
73 {
74 rm "$1/bin/cp" &&
75 mv "$1/usr/bin/cp" "$1/bin"
76 }
78 post_remove()
79 {
80 ln -s ../../bin/busybox "$1/usr/bin/od"
81 ln -s ../../bin/busybox "$1/usr/bin/split"
82 rm -f "$1/bin/cp"
83 ln -s busybox "$1/bin/cp"
84 }
86 clean_wok()
87 {
88 rm -rf $WOK/$PACKAGE-*/taz
89 rm -rf $WOK/$PACKAGE-*/process.log
90 }