wok view busybox-static/receipt @ rev 6511

Disable gconf and libcanberra in transmission.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Oct 02 00:56:24 2010 +0000 (2010-10-02)
parents c29991cef110
children a841d189e474
line source
1 # SliTaz package receipt.
3 PACKAGE="busybox-static"
4 VERSION="1.17.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Busybox combines tiny versions of many common UNIX utilities."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS=""
9 BUILD_DEPENDS="bzip2 uclibc-cross-compiler-i486"
10 SOURCE="busybox"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.busybox.net/"
13 WGET_URL="http://www.busybox.net/downloads/$TARBALL"
14 CONFIG_FILES=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 while read file; do
21 [ -f done.$file ] && continue
22 echo "Apply $file..."
23 patch -p1 < $WOK/$SOURCE/stuff/$SOURCE-$VERSION-$file || return 1
24 touch done.$file
25 done <<EOT
26 cpio-mkdir.u
27 tar.u
28 stat.u
29 ris.u
30 depmod.u
31 zmodules.u
32 usage.u
33 EOT
34 cp ../stuff/$SOURCE-$VERSION.config .config
35 make oldconfig
36 if [ "$(gcc --version | awk '{ print $3; exit }')" == "4.5.0" ]; then
37 # "CFLAGS=-O0" is a workaround for GCC 4.5.0 (sed crash)
38 # "CFLAGS=-fno-tree-pta" may be a workaround for GCC 4.5.0 (sed garbage)
39 make -j 4 "CFLAGS=-O0" && make "CFLAGS=-O0" install
40 else
41 make -j 4 && make install
42 fi
43 echo "Chmod 4755 on busybox binary..."
44 chmod 4755 _install/bin/busybox
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/boot
51 cp -a $src/_install/bin/busybox $fs/usr/share/boot/busybox-static
52 }