wok-current annotate coreutils/receipt @ rev 25733

Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author Stanislas Leduc <shann@slitaz.org>
date Fri Dec 20 16:13:23 2024 +0000 (10 days ago)
parents 3b252eb4d26a
children
rev   line source
pankso@15 1 # SliTaz package receipt.
pankso@15 2
pankso@15 3 PACKAGE="coreutils"
Hans-G?nter@24437 4 VERSION="9.0"
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
shann@25728 14 HOST_ARCH="i486 x86_64"
shann@25728 15
Hans-G?nter@24437 16 SUGGESTED="coreutils-lang"
al@19215 17 SIBLINGS="coreutils-multicall"
Hans-G?nter@22616 18 SPLIT="coreutils-character coreutils-command coreutils-conditions
Hans-G?nter@22616 19 coreutils-context-system coreutils-context-user
Hans-G?nter@22616 20 coreutils-context-working coreutils-directory coreutils-disk
Hans-G?nter@22616 21 coreutils-file-attributes coreutils-file-format
Hans-G?nter@22616 22 coreutils-file-output-full coreutils-file-output-part
Hans-G?nter@22616 23 coreutils-file-sort coreutils-file-special coreutils-file-summarize
Hans-G?nter@22616 24 coreutils-line coreutils-numeric coreutils-operations
Hans-G?nter@22616 25 coreutils-path coreutils-print coreutils-redirection"
Hans-G?nter@22616 26 DEPENDS="acl attr glibc-base gmp"
Hans-G?nter@22616 27 BUILD_DEPENDS="automake gmp-dev libcap-dev xz"
pankso@15 28
pascal@24415 29 # What is the latest version available today?
pascal@24415 30 current_version()
pascal@24415 31 {
pascal@24415 32 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24415 33 sed '/latest/d;/coreutils-/!d;/tar/!d;s|.*coreutils-||;s|.tar.*||' | sort -Vr | sed q
pascal@24415 34 }
pascal@24415 35
pankso@15 36 # Rules to configure and make the package.
pankso@15 37 compile_rules()
pankso@15 38 {
al@19215 39 # LFS: Coreutils Internationalization Fixes Patch
Hans-G?nter@22616 40 # patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch
Hans-G?nter@22616 41
al@19215 42 # SliTaz: show extended info touching CPU via uname
al@19215 43 patch -p1 -i $stuff/uname.u
rcx@3574 44
al@19215 45 autoreconf -fi
pankso@4080 46
Hans-G?nter@22616 47 # bypass checking whether mknod can create fifo without root privileges
Hans-G?nter@22616 48 export FORCE_UNSAFE_CONFIGURE=1
Hans-G?nter@22616 49
Hans-G?nter@22616 50 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@22616 51 make &&
Hans-G?nter@22616 52 make install
pankso@4080 53
al@19215 54 # LFS: Move programs to the locations specified by the FHS
Hans-G?nter@22616 55 mkdir -p $install/bin
Hans-G?nter@22616 56 mkdir -p $install/usr/sbin
Hans-G?nter@22616 57 mkdir -p $install/usr/share/man/man8
Hans-G?nter@22616 58
Hans-G?nter@24437 59 while read i
Hans-G?nter@22616 60 do
Hans-G?nter@24437 61 mv $install/usr/bin/$i $install/bin
Hans-G?nter@24437 62 done <<EOT
Hans-G?nter@24437 63 cat
Hans-G?nter@24437 64 chgrp
Hans-G?nter@24437 65 chmod
Hans-G?nter@24437 66 chown
Hans-G?nter@24437 67 cp
Hans-G?nter@24437 68 date
Hans-G?nter@24437 69 dd
Hans-G?nter@24437 70 df
Hans-G?nter@24437 71 echo
Hans-G?nter@24437 72 false
Hans-G?nter@24437 73 ln
Hans-G?nter@24437 74 ls
Hans-G?nter@24437 75 mkdir
Hans-G?nter@24437 76 mknod
Hans-G?nter@24437 77 mv
Hans-G?nter@24437 78 pwd
Hans-G?nter@24437 79 rm
Hans-G?nter@24437 80 rmdir
Hans-G?nter@24437 81 stty
Hans-G?nter@24437 82 sync
Hans-G?nter@24437 83 true
Hans-G?nter@24437 84 uname
Hans-G?nter@24437 85 EOT
Hans-G?nter@22616 86 mv $install/usr/bin/chroot $install/usr/sbin
al@19215 87 mv $install/usr/share/man/man1/chroot.1 \
Hans-G?nter@22616 88 $install/usr/share/man/man8/chroot.8
Hans-G?nter@22616 89
al@19215 90 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8
al@19215 91
al@19215 92 find $install/usr/share/man -type f -exec gzip -9 \{\} \;
pankso@15 93 }
pankso@15 94
pankso@15 95 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@15 96 genpkg_rules()
pankso@15 97 {
al@19215 98 # A set of binaries looks intriguing, isn't it?
al@19215 99 # For what is this package with exactly these binaries?
al@19215 100
Hans-G?nter@22616 101 mkdir -p $fs/usr/bin
Hans-G?nter@22616 102 mkdir -p $fs/bin
al@19215 103
al@19215 104 cd $install/usr/bin
Hans-G?nter@24437 105 while read i
Hans-G?nter@22616 106 do
Hans-G?nter@22616 107 cp -a $i $fs/usr/bin
Hans-G?nter@24437 108 done <<EOT
Hans-G?nter@24437 109 base64
Hans-G?nter@24437 110 csplit
Hans-G?nter@24437 111 factor
Hans-G?nter@24437 112 fmt
Hans-G?nter@24437 113 groups
Hans-G?nter@24437 114 join
Hans-G?nter@24437 115 od
Hans-G?nter@24437 116 paste
Hans-G?nter@24437 117 ptx
Hans-G?nter@24437 118 shred
Hans-G?nter@24437 119 shuf
Hans-G?nter@24437 120 split
Hans-G?nter@24437 121 users
Hans-G?nter@24437 122 EOT
Hans-G?nter@22616 123 cp -a $install/bin/cp $fs/bin
pankso@15 124 }
pankso@15 125
domcox@14131 126 post_install()
domcox@14131 127 {
al@19215 128 # Remove Busybox applet in order to not clash with
al@19215 129 # /usr/bin/base64 from this package.
al@19215 130 rm "$1/bin/base64"
pankso@15 131 }
pankso@3435 132
pankso@3435 133 post_remove()
pankso@3435 134 {
al@19215 135 ln -s busybox "$1/bin/base64"
al@19215 136 ln -s busybox "$1/bin/cp"
al@19215 137 ln -s /bin/busybox "$1/usr/bin/groups"
al@19215 138 ln -s /bin/busybox "$1/usr/bin/od"
al@19215 139 ln -s /bin/busybox "$1/usr/bin/split"
al@19215 140 ln -s /bin/busybox "$1/usr/bin/users"
pankso@3435 141 }