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