wok-6.x annotate coreutils/receipt @ rev 21350
amule: add debian libupnp1.8.patch
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sat Apr 20 15:44:26 2019 -0400 (2019-04-20) |
parents | d6ca18366f41 |
children | 9b6a3a5c1a07 |
rev | line source |
---|---|
pankso@15 | 1 # SliTaz package receipt. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
al@19215 | 4 VERSION="8.25" |
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" |
slaxemulator@7244 | 10 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19215 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@14074 | 12 |
al@19215 | 13 SIBLINGS="coreutils-multicall" |
al@19215 | 14 SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-\ |
al@19215 | 15 context-system coreutils-context-user coreutils-context-working coreutils-\ |
al@19215 | 16 directory coreutils-disk coreutils-file-attributes coreutils-file-format \ |
al@19215 | 17 coreutils-file-output-full coreutils-file-output-part coreutils-file-sort \ |
al@19215 | 18 coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\ |
al@19215 | 19 numeric coreutils-operations coreutils-path coreutils-print coreutils-\ |
al@19215 | 20 redirection" |
al@19215 | 21 DEPENDS="glibc-base acl attr gmp" |
al@19215 | 22 BUILD_DEPENDS="automake xz libcap-dev gmp-dev" |
pankso@15 | 23 |
pankso@15 | 24 # Rules to configure and make the package. |
pankso@15 | 25 compile_rules() |
pankso@15 | 26 { |
al@19215 | 27 # LFS: Coreutils Internationalization Fixes Patch |
al@19215 | 28 patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch |
al@19215 | 29 # SliTaz: show extended info touching CPU via uname |
al@19215 | 30 patch -p1 -i $stuff/uname.u |
rcx@3574 | 31 |
al@19215 | 32 autoreconf -fi |
pankso@4080 | 33 |
al@19215 | 34 FORCE_UNSAFE_CONFIGURE=1 ./configure $CONFIGURE_ARGS && |
slaxemulator@10149 | 35 make && make install |
pankso@4080 | 36 |
al@19215 | 37 # LFS: Move programs to the locations specified by the FHS |
al@19215 | 38 mkdir -p \ |
al@19215 | 39 $install/bin \ |
al@19215 | 40 $install/usr/sbin \ |
al@19215 | 41 $install/usr/share/man/man8 |
al@19215 | 42 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \ |
al@19215 | 43 mknod mv pwd rm rmdir stty sync true uname; do |
al@19215 | 44 mv $install/usr/bin/$i $install/bin |
al@19215 | 45 done |
al@19215 | 46 mv $install/usr/bin/chroot $install/usr/sbin |
al@19215 | 47 mv $install/usr/share/man/man1/chroot.1 \ |
al@19215 | 48 $install/usr/share/man/man8/chroot.8 |
al@19215 | 49 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 |
al@19215 | 50 |
al@19215 | 51 find $install/usr/share/man -type f -exec gzip -9 \{\} \; |
pankso@15 | 52 } |
pankso@15 | 53 |
pankso@15 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15 | 55 genpkg_rules() |
pankso@15 | 56 { |
al@19215 | 57 # A set of binaries looks intriguing, isn't it? |
al@19215 | 58 # For what is this package with exactly these binaries? |
al@19215 | 59 |
pascal@14074 | 60 mkdir -p $fs/usr/bin $fs/bin |
al@19215 | 61 |
al@19215 | 62 cd $install/usr/bin |
al@19215 | 63 cp -a base64 csplit factor fmt join od paste ptx shred shuf split users \ |
al@19215 | 64 groups $fs/usr/bin |
al@19215 | 65 |
al@19215 | 66 cp -a $install/bin/cp $fs/bin |
pankso@15 | 67 } |
pankso@15 | 68 |
domcox@14131 | 69 post_install() |
domcox@14131 | 70 { |
al@19215 | 71 # Remove Busybox applet in order to not clash with |
al@19215 | 72 # /usr/bin/base64 from this package. |
al@19215 | 73 rm "$1/bin/base64" |
pankso@15 | 74 } |
pankso@3435 | 75 |
pankso@3435 | 76 post_remove() |
pankso@3435 | 77 { |
al@19215 | 78 ln -s busybox "$1/bin/base64" |
al@19215 | 79 ln -s busybox "$1/bin/cp" |
al@19215 | 80 ln -s /bin/busybox "$1/usr/bin/groups" |
al@19215 | 81 ln -s /bin/busybox "$1/usr/bin/od" |
al@19215 | 82 ln -s /bin/busybox "$1/usr/bin/split" |
al@19215 | 83 ln -s /bin/busybox "$1/usr/bin/users" |
pankso@3435 | 84 } |