wok-current annotate busybox-static/receipt @ rev 25586
Fix linux build with gcc > 6 again
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon May 29 12:23:26 2023 +0000 (19 months ago) |
parents | 675c9264bc6a |
children |
rev | line source |
---|---|
pascal@5066 | 1 # SliTaz package receipt. |
pascal@5066 | 2 |
pascal@5066 | 3 PACKAGE="busybox-static" |
pascal@23897 | 4 VERSION="1.31.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@14657 | 8 LICENSE="GPL2" |
pascal@25540 | 9 WEB_SITE="https://busybox.net/" |
pascal@5066 | 10 CONFIG_FILES="" |
pascal@5066 | 11 |
pascal@19677 | 12 WANTED="busybox" |
pascal@19677 | 13 DEPENDS="" |
pascal@19677 | 14 |
pascal@5066 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5066 | 16 genpkg_rules() |
pascal@5066 | 17 { |
pascal@14750 | 18 mkdir -p $fs/usr/share/boot |
pascal@14750 | 19 CHOICE=static |
pascal@21467 | 20 for i in uclibc musl ; do # diet's busybox umount crash |
pascal@14750 | 21 [ -x $src/busybox-$i ] || continue |
pascal@19677 | 22 [ -x $src/busybox-$CHOICE ] && |
pascal@19677 | 23 [ $(stat -c %s $src/busybox-$i) -ge \ |
pascal@19677 | 24 $(stat -c %s $src/busybox-$CHOICE) ] && |
pascal@19677 | 25 continue |
pascal@14750 | 26 CHOICE=$i |
pascal@14750 | 27 done |
pascal@14750 | 28 cp -a $src/busybox-$CHOICE $fs/usr/share/boot/busybox-static |
pascal@5066 | 29 } |
pascal@7755 | 30 |
pascal@7755 | 31 post_install() |
pascal@7755 | 32 { |
pascal@19677 | 33 chmod 4755 "$1/usr/share/boot/busybox-static" |
pascal@7755 | 34 } |