wok annotate coreutils/receipt @ rev 24138
updated qpdf and qpdf-dev again (8.4.2 -> 10.3.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Nov 08 17:21:48 2021 +0100 (2021-11-08) |
parents | 1d0123efe74c |
children | 17091bc7c301 |
rev | line source |
---|---|
pankso@15 | 1 # SliTaz package receipt. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
Hans-G?nter@22616 | 4 VERSION="8.31" |
pankso@211 | 5 CATEGORY="system-tools" |
pankso@15 | 6 SHORT_DESC="Utilities for using and setting the basic system." |
pankso@15 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@19215 | 9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" |
Hans-G?nter@22616 | 10 |
slaxemulator@7244 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@22616 | 12 WGET_URL="https://ftp.gnu.org/gnu/$PACKAGE/$TARBALL" |
pascal@14074 | 13 |
al@19215 | 14 SIBLINGS="coreutils-multicall" |
Hans-G?nter@22616 | 15 SPLIT="coreutils-character coreutils-command coreutils-conditions |
Hans-G?nter@22616 | 16 coreutils-context-system coreutils-context-user |
Hans-G?nter@22616 | 17 coreutils-context-working coreutils-directory coreutils-disk |
Hans-G?nter@22616 | 18 coreutils-file-attributes coreutils-file-format |
Hans-G?nter@22616 | 19 coreutils-file-output-full coreutils-file-output-part |
Hans-G?nter@22616 | 20 coreutils-file-sort coreutils-file-special coreutils-file-summarize |
Hans-G?nter@22616 | 21 coreutils-line coreutils-numeric coreutils-operations |
Hans-G?nter@22616 | 22 coreutils-path coreutils-print coreutils-redirection" |
Hans-G?nter@22616 | 23 DEPENDS="acl attr glibc-base gmp" |
Hans-G?nter@22616 | 24 BUILD_DEPENDS="automake gmp-dev libcap-dev xz" |
pankso@15 | 25 |
pankso@15 | 26 # Rules to configure and make the package. |
pankso@15 | 27 compile_rules() |
pankso@15 | 28 { |
al@19215 | 29 # LFS: Coreutils Internationalization Fixes Patch |
Hans-G?nter@22616 | 30 # patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch |
Hans-G?nter@22616 | 31 |
al@19215 | 32 # SliTaz: show extended info touching CPU via uname |
al@19215 | 33 patch -p1 -i $stuff/uname.u |
rcx@3574 | 34 |
al@19215 | 35 autoreconf -fi |
pankso@4080 | 36 |
Hans-G?nter@22616 | 37 # bypass checking whether mknod can create fifo without root privileges |
Hans-G?nter@22616 | 38 export FORCE_UNSAFE_CONFIGURE=1 |
Hans-G?nter@22616 | 39 |
Hans-G?nter@22616 | 40 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@22616 | 41 make && |
Hans-G?nter@22616 | 42 make install |
pankso@4080 | 43 |
al@19215 | 44 # LFS: Move programs to the locations specified by the FHS |
Hans-G?nter@22616 | 45 mkdir -p $install/bin |
Hans-G?nter@22616 | 46 mkdir -p $install/usr/sbin |
Hans-G?nter@22616 | 47 mkdir -p $install/usr/share/man/man8 |
Hans-G?nter@22616 | 48 |
al@19215 | 49 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \ |
Hans-G?nter@22616 | 50 mknod mv pwd rm rmdir stty sync true uname |
Hans-G?nter@22616 | 51 do |
Hans-G?nter@22616 | 52 mv $install/usr/bin/$i $install/bin |
Hans-G?nter@22616 | 53 done |
Hans-G?nter@22616 | 54 mv $install/usr/bin/chroot $install/usr/sbin |
al@19215 | 55 mv $install/usr/share/man/man1/chroot.1 \ |
Hans-G?nter@22616 | 56 $install/usr/share/man/man8/chroot.8 |
Hans-G?nter@22616 | 57 |
al@19215 | 58 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 |
al@19215 | 59 |
al@19215 | 60 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
pankso@15 | 61 } |
pankso@15 | 62 |
pankso@15 | 63 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15 | 64 genpkg_rules() |
pankso@15 | 65 { |
al@19215 | 66 # A set of binaries looks intriguing, isn't it? |
al@19215 | 67 # For what is this package with exactly these binaries? |
al@19215 | 68 |
Hans-G?nter@22616 | 69 mkdir -p $fs/usr/bin |
Hans-G?nter@22616 | 70 mkdir -p $fs/bin |
al@19215 | 71 |
al@19215 | 72 cd $install/usr/bin |
Hans-G?nter@22616 | 73 for i in base64 csplit factor fmt join od paste ptx shred shuf \ |
Hans-G?nter@22616 | 74 split users groups |
Hans-G?nter@22616 | 75 do |
Hans-G?nter@22616 | 76 cp -a $i $fs/usr/bin |
Hans-G?nter@22616 | 77 done |
al@19215 | 78 |
Hans-G?nter@22616 | 79 cp -a $install/bin/cp $fs/bin |
pankso@15 | 80 } |
pankso@15 | 81 |
domcox@14131 | 82 post_install() |
domcox@14131 | 83 { |
al@19215 | 84 # Remove Busybox applet in order to not clash with |
al@19215 | 85 # /usr/bin/base64 from this package. |
al@19215 | 86 rm "$1/bin/base64" |
pankso@15 | 87 } |
pankso@3435 | 88 |
pankso@3435 | 89 post_remove() |
pankso@3435 | 90 { |
al@19215 | 91 ln -s busybox "$1/bin/base64" |
al@19215 | 92 ln -s busybox "$1/bin/cp" |
al@19215 | 93 ln -s /bin/busybox "$1/usr/bin/groups" |
al@19215 | 94 ln -s /bin/busybox "$1/usr/bin/od" |
al@19215 | 95 ln -s /bin/busybox "$1/usr/bin/split" |
al@19215 | 96 ln -s /bin/busybox "$1/usr/bin/users" |
pankso@3435 | 97 } |