wok-next annotate coreutils/receipt @ rev 20433
mupdf: update patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 05 15:11:20 2018 +0100 (2018-02-05) |
parents | c963361d3d54 |
children | 90a5eb560fd6 |
rev | line source |
---|---|
al@19735 | 1 # SliTaz package receipt v2. |
pankso@15 | 2 |
pankso@15 | 3 PACKAGE="coreutils" |
al@19215 | 4 VERSION="8.25" |
al@19561 | 5 CATEGORY="meta" |
al@19735 | 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" |
al@19561 | 10 |
slaxemulator@7244 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19215 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@14074 | 13 |
al@19215 | 14 SIBLINGS="coreutils-multicall" |
al@19735 | 15 BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch" |
al@19215 | 16 SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-\ |
al@19215 | 17 context-system coreutils-context-user coreutils-context-working coreutils-\ |
al@19215 | 18 directory coreutils-disk coreutils-file-attributes coreutils-file-format \ |
al@19215 | 19 coreutils-file-output-full coreutils-file-output-part coreutils-file-sort \ |
al@19215 | 20 coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\ |
al@19215 | 21 numeric coreutils-operations coreutils-path coreutils-print coreutils-\ |
al@19215 | 22 redirection" |
pankso@15 | 23 |
pankso@15 | 24 # Rules to configure and make the package. |
pankso@15 | 25 compile_rules() |
pankso@15 | 26 { |
al@19735 | 27 # Rebuild fixed translations |
al@19561 | 28 msgfmt po/nb.po -o po/nb.gmo |
al@19561 | 29 msgfmt po/sl.po -o po/sl.gmo |
rcx@3574 | 30 |
al@19215 | 31 autoreconf -fi |
pankso@4080 | 32 |
al@19215 | 33 FORCE_UNSAFE_CONFIGURE=1 ./configure $CONFIGURE_ARGS && |
slaxemulator@10149 | 34 make && make install |
pankso@4080 | 35 |
al@19215 | 36 # LFS: Move programs to the locations specified by the FHS |
al@19215 | 37 mkdir -p \ |
al@19215 | 38 $install/bin \ |
al@19215 | 39 $install/usr/sbin \ |
al@19215 | 40 $install/usr/share/man/man8 |
al@19215 | 41 for i in cat chgrp chmod chown cp date dd df echo false ln ls mkdir \ |
al@19215 | 42 mknod mv pwd rm rmdir stty sync true uname; do |
al@19215 | 43 mv $install/usr/bin/$i $install/bin |
al@19215 | 44 done |
al@19215 | 45 mv $install/usr/bin/chroot $install/usr/sbin |
al@19215 | 46 mv $install/usr/share/man/man1/chroot.1 \ |
al@19215 | 47 $install/usr/share/man/man8/chroot.8 |
al@19215 | 48 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 |
pankso@15 | 49 } |
al@19735 | 50 |
al@19735 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19735 | 52 genpkg_rules() |
al@19735 | 53 { |
al@19735 | 54 case $PACKAGE in |
al@19735 | 55 coreutils) |
al@19735 | 56 DEPENDS="$SPLIT" ;; |
al@19735 | 57 coreutils-character) |
al@19735 | 58 copy expand tr unexpand |
al@19735 | 59 CAT="system-tools|operate on characters" |
al@19735 | 60 DEPENDS="glibc-base" ;; |
al@19735 | 61 coreutils-command) |
al@19735 | 62 copy env kill nice nohup sleep stdbuf timeout libstdbuf.so chroot |
al@19735 | 63 CAT="system-tools|commands" |
al@19735 | 64 DEPENDS="glibc-base" ;; |
al@19735 | 65 coreutils-conditions) |
al@19735 | 66 copy false true [ expr test |
al@19735 | 67 CAT="system-tools|conditions" |
al@19735 | 68 DEPENDS="glibc-base gmp" ;; |
al@19735 | 69 coreutils-context-system) |
al@19735 | 70 copy date uname chcon hostid nproc runcon uptime |
al@19735 | 71 CAT="system-tools|system context" |
al@19735 | 72 DEPENDS="glibc-base" ;; |
al@19735 | 73 coreutils-context-user) |
al@19735 | 74 copy groups id logname pinky users who whoami |
al@19735 | 75 CAT="system-tools|user context" |
al@19735 | 76 DEPENDS="glibc-base" ;; |
al@19735 | 77 coreutils-context-working) |
al@19735 | 78 copy pwd stty printenv tty |
al@19735 | 79 CAT="system-tools|working context" |
al@19735 | 80 DEPENDS="glibc-base" ;; |
al@19735 | 81 coreutils-directory) |
al@19735 | 82 copy ls dir dircolors vdir |
al@19735 | 83 CAT="system-tools|list directories" |
al@19735 | 84 DEPENDS="glibc-base attr libcap" ;; |
al@19735 | 85 coreutils-disk) |
al@19735 | 86 copy df sync du stat truncate |
al@19735 | 87 CAT="system-tools|work with disks" |
al@19735 | 88 DEPENDS="glibc-base" ;; |
al@19735 | 89 coreutils-file-attributes) |
al@19735 | 90 copy chgrp chmod chown touch |
al@19735 | 91 CAT="system-tools|change file attributes" |
al@19735 | 92 DEPENDS="glibc-base" ;; |
al@19735 | 93 coreutils-file-format) |
al@19735 | 94 copy fmt fold pr |
al@19735 | 95 CAT="system-tools|format file contents" |
al@19735 | 96 DEPENDS="glibc-base" ;; |
al@19735 | 97 coreutils-file-output-full) |
al@19735 | 98 copy cat base32 base64 nl od tac |
al@19735 | 99 CAT="system-tools|output entire files" |
al@19735 | 100 DEPENDS="glibc-base" ;; |
al@19735 | 101 coreutils-file-output-part) |
al@19735 | 102 copy csplit head split tail |
al@19735 | 103 CAT="system-tools|output file parts" |
al@19735 | 104 DEPENDS="glibc-base" ;; |
al@19735 | 105 coreutils-file-sort) |
al@19735 | 106 copy comm ptx shuf sort tsort uniq |
al@19735 | 107 CAT="system-tools|operate on sorted files" |
al@19735 | 108 DEPENDS="glibc-base" ;; |
al@19735 | 109 coreutils-file-special) |
al@19735 | 110 copy ln mkdir mknod rmdir link mkfifo mktemp readlink realpath unlink |
al@19735 | 111 CAT="system-tools|work with special file types" |
al@19735 | 112 DEPENDS="glibc-base" ;; |
al@19735 | 113 coreutils-file-summarize) |
al@19735 | 114 copy cksum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum sum wc |
al@19735 | 115 CAT="system-tools|summarize files" |
al@19735 | 116 DEPENDS="glibc-base" ;; |
al@19735 | 117 coreutils-line) |
al@19735 | 118 copy cut join paste |
al@19735 | 119 CAT="system-tools|operate on fields within a line" |
al@19735 | 120 DEPENDS="glibc-base" ;; |
al@19735 | 121 coreutils-numeric) |
al@19735 | 122 copy factor seq |
al@19735 | 123 CAT="system-tools|numeric" |
al@19735 | 124 DEPENDS="glibc-base gmp" ;; |
al@19735 | 125 coreutils-operations) |
al@19735 | 126 copy cp dd mv install rm shred |
al@19735 | 127 CAT="system-tools|perform basic operations" |
al@19735 | 128 DEPENDS="glibc-base acl attr" ;; |
al@19735 | 129 coreutils-path) |
al@19735 | 130 copy basename dirname pathchk |
al@19735 | 131 CAT="system-tools|perform path manipulation" |
al@19735 | 132 DEPENDS="glibc-base" ;; |
al@19735 | 133 coreutils-print) |
al@19735 | 134 copy echo numfmt printf yes |
al@19735 | 135 CAT="system-tools|print text" |
al@19735 | 136 DEPENDS="glibc-base" ;; |
al@19735 | 137 coreutils-redirection) |
al@19735 | 138 copy tee |
al@19735 | 139 CAT="system-tools|redirection" |
al@19735 | 140 DEPENDS="glibc-base" ;; |
al@19735 | 141 esac |
al@19735 | 142 } |
al@19735 | 143 |
al@19735 | 144 # Remove Busybox applets in order to not clash with ("/bin", "/sbin", |
al@19735 | 145 # "/usr/bin" and "/usr/sbin" conflicts with the same filename) |
al@19735 | 146 post_install_coreutils_command() |
al@19735 | 147 { |
al@19735 | 148 rm "$1/bin/kill" # for /usr/bin/kill |
al@19735 | 149 rm "$1/bin/nice" # for /usr/bin/nice |
al@19735 | 150 rm "$1/bin/sleep" # for /usr/bin/sleep |
al@19735 | 151 } |
al@19735 | 152 post_install_coreutils_context_working() |
al@19735 | 153 { |
al@19735 | 154 rm "$1/bin/printenv" # for /usr/bin/printenv |
al@19735 | 155 } |
al@19735 | 156 post_install_coreutils_disk() |
al@19735 | 157 { |
al@19735 | 158 rm "$1/bin/stat" # for /usr/bin/stat |
al@19735 | 159 } |
al@19735 | 160 post_install_coreutils_file_attributes() |
al@19735 | 161 { |
al@19735 | 162 rm "$1/bin/touch" # for /usr/bin/touch |
al@19735 | 163 } |
al@19735 | 164 post_install_coreutils_file_output_full() |
al@19735 | 165 { |
al@19735 | 166 rm "$1/bin/base64" # for /usr/bin/base64 |
al@19735 | 167 } |
al@19735 | 168 post_install_coreutils_file_special() |
al@19735 | 169 { |
al@19735 | 170 rm "$1/bin/mktemp" # for /usr/bin/mktemp |
al@19735 | 171 } |