wok-current annotate coreutils-file-output-full/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (9 months ago) |
parents | 3b252eb4d26a |
children |
rev | line source |
---|---|
rcx@3662 | 1 # SliTaz package receipt. |
rcx@3662 | 2 |
rcx@3662 | 3 PACKAGE="coreutils-file-output-full" |
Hans-Günter@24437 | 4 VERSION="9.0" |
rcx@3662 | 5 CATEGORY="system-tools" |
rcx@3662 | 6 SHORT_DESC="GNU utilities that output entire files." |
rcx@3662 | 7 MAINTAINER="rcx@zoominternet.net" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19215 | 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" |
al@19215 | 10 |
Hans-Günter@24437 | 11 SUGGESTED="coreutils-lang" |
Hans-Günter@22616 | 12 DEPENDS="glibc-base" |
pascal@14999 | 13 WANTED="coreutils" |
rcx@3662 | 14 |
shann@25728 | 15 HOST_ARCH="i486 x86_64" |
shann@25728 | 16 |
rcx@3662 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3662 | 18 genpkg_rules() |
rcx@3662 | 19 { |
Hans-Günter@24437 | 20 # according to https://doc.slitaz.org/en:cookbook:wok |
Hans-Günter@24437 | 21 # Generally, the base packages contain no man, info or doc files |
Hans-Günter@24437 | 22 # mandir="$fs/usr/share/man/man1" |
Hans-Günter@24437 | 23 # mkdir -p $mandir |
rcx@3662 | 24 |
Hans-Günter@22616 | 25 while read i |
Hans-Günter@22616 | 26 do |
al@19215 | 27 mkdir -p $fs$(dirname $i) |
Hans-Günter@22616 | 28 cp -a $install$i $fs$i |
Hans-Günter@24437 | 29 # find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \; |
Hans-Günter@22616 | 30 done <<EOT |
al@19215 | 31 /bin/cat |
al@19215 | 32 /usr/bin/base32 |
al@19215 | 33 /usr/bin/base64 |
al@19215 | 34 /usr/bin/nl |
al@19215 | 35 /usr/bin/od |
al@19215 | 36 /usr/bin/tac |
al@19215 | 37 EOT |
al@19215 | 38 } |
al@19215 | 39 |
al@19215 | 40 post_install() |
al@19215 | 41 { |
al@19215 | 42 # Remove Busybox applets in order to not clash with ("/bin", "/sbin", |
al@19215 | 43 # "/usr/bin" and "/usr/sbin" conflicts with the same filename) |
Hans-Günter@24437 | 44 rm "$1/bin/base64" # /usr/bin/base64 |
rcx@3662 | 45 } |
rcx@3662 | 46 |
rcx@3662 | 47 post_remove() |
rcx@3662 | 48 { |
al@19215 | 49 # Restore all Busybox applets that have been replaced |
Hans-Günter@22616 | 50 while read i |
Hans-Günter@22616 | 51 do |
al@19215 | 52 busybox ln -s /bin/busybox "$1$i" |
Hans-Günter@22616 | 53 done <<EOT |
al@19215 | 54 /bin/base64 |
al@19215 | 55 /bin/cat |
al@19215 | 56 /usr/bin/od |
al@19215 | 57 /usr/bin/tac |
al@19215 | 58 EOT |
rcx@3662 | 59 } |