wok-next diff coreutils/receipt @ rev 19735
Update some more receipts to v2: coreutils, attr, libpng16 (former libpng), libpng12, libwebp, libxml2.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 27 16:55:17 2017 +0300 (2017-05-27) |
parents | c963361d3d54 |
children | 90a5eb560fd6 |
line diff
1.1 --- a/coreutils/receipt Fri Dec 16 01:16:56 2016 +0200 1.2 +++ b/coreutils/receipt Sat May 27 16:55:17 2017 +0300 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="coreutils" 1.8 VERSION="8.25" 1.9 CATEGORY="meta" 1.10 -SHORT_DESC="Utilities for using and setting the basic system." 1.11 +SHORT_DESC="Utilities for using and setting the basic system" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL3" 1.14 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html" 1.15 @@ -12,6 +12,7 @@ 1.16 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.17 1.18 SIBLINGS="coreutils-multicall" 1.19 +BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch" 1.20 SPLIT="coreutils-character coreutils-command coreutils-conditions coreutils-\ 1.21 context-system coreutils-context-user coreutils-context-working coreutils-\ 1.22 directory coreutils-disk coreutils-file-attributes coreutils-file-format \ 1.23 @@ -19,18 +20,11 @@ 1.24 coreutils-file-special coreutils-file-summarize coreutils-line coreutils-\ 1.25 numeric coreutils-operations coreutils-path coreutils-print coreutils-\ 1.26 redirection" 1.27 -DEPENDS="glibc-base acl attr gmp $SPLIT" 1.28 -BUILD_DEPENDS="automake autoconf gettext xz libcap-dev gmp-dev patch" 1.29 1.30 # Rules to configure and make the package. 1.31 compile_rules() 1.32 { 1.33 - # LFS: Coreutils Internationalization Fixes Patch 1.34 - patch -Np1 -i $stuff/coreutils-8.25-i18n-2.patch 1.35 - # SliTaz: show extended info touching CPU via uname 1.36 - patch -p1 -i $stuff/uname.u 1.37 - # SliTaz: fix translations, especially deprecated symbol '\v' 1.38 - patch -p1 -i $stuff/coreutils-fix-po.patch 1.39 + # Rebuild fixed translations 1.40 msgfmt po/nb.po -o po/nb.gmo 1.41 msgfmt po/sl.po -o po/sl.gmo 1.42 1.43 @@ -53,3 +47,125 @@ 1.44 $install/usr/share/man/man8/chroot.8 1.45 sed -i 's|"1"|"8"|' $install/usr/share/man/man8/chroot.8 1.46 } 1.47 + 1.48 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 +genpkg_rules() 1.50 +{ 1.51 + case $PACKAGE in 1.52 + coreutils) 1.53 + DEPENDS="$SPLIT" ;; 1.54 + coreutils-character) 1.55 + copy expand tr unexpand 1.56 + CAT="system-tools|operate on characters" 1.57 + DEPENDS="glibc-base" ;; 1.58 + coreutils-command) 1.59 + copy env kill nice nohup sleep stdbuf timeout libstdbuf.so chroot 1.60 + CAT="system-tools|commands" 1.61 + DEPENDS="glibc-base" ;; 1.62 + coreutils-conditions) 1.63 + copy false true [ expr test 1.64 + CAT="system-tools|conditions" 1.65 + DEPENDS="glibc-base gmp" ;; 1.66 + coreutils-context-system) 1.67 + copy date uname chcon hostid nproc runcon uptime 1.68 + CAT="system-tools|system context" 1.69 + DEPENDS="glibc-base" ;; 1.70 + coreutils-context-user) 1.71 + copy groups id logname pinky users who whoami 1.72 + CAT="system-tools|user context" 1.73 + DEPENDS="glibc-base" ;; 1.74 + coreutils-context-working) 1.75 + copy pwd stty printenv tty 1.76 + CAT="system-tools|working context" 1.77 + DEPENDS="glibc-base" ;; 1.78 + coreutils-directory) 1.79 + copy ls dir dircolors vdir 1.80 + CAT="system-tools|list directories" 1.81 + DEPENDS="glibc-base attr libcap" ;; 1.82 + coreutils-disk) 1.83 + copy df sync du stat truncate 1.84 + CAT="system-tools|work with disks" 1.85 + DEPENDS="glibc-base" ;; 1.86 + coreutils-file-attributes) 1.87 + copy chgrp chmod chown touch 1.88 + CAT="system-tools|change file attributes" 1.89 + DEPENDS="glibc-base" ;; 1.90 + coreutils-file-format) 1.91 + copy fmt fold pr 1.92 + CAT="system-tools|format file contents" 1.93 + DEPENDS="glibc-base" ;; 1.94 + coreutils-file-output-full) 1.95 + copy cat base32 base64 nl od tac 1.96 + CAT="system-tools|output entire files" 1.97 + DEPENDS="glibc-base" ;; 1.98 + coreutils-file-output-part) 1.99 + copy csplit head split tail 1.100 + CAT="system-tools|output file parts" 1.101 + DEPENDS="glibc-base" ;; 1.102 + coreutils-file-sort) 1.103 + copy comm ptx shuf sort tsort uniq 1.104 + CAT="system-tools|operate on sorted files" 1.105 + DEPENDS="glibc-base" ;; 1.106 + coreutils-file-special) 1.107 + copy ln mkdir mknod rmdir link mkfifo mktemp readlink realpath unlink 1.108 + CAT="system-tools|work with special file types" 1.109 + DEPENDS="glibc-base" ;; 1.110 + coreutils-file-summarize) 1.111 + copy cksum md5sum sha1sum sha224sum sha256sum sha384sum sha512sum sum wc 1.112 + CAT="system-tools|summarize files" 1.113 + DEPENDS="glibc-base" ;; 1.114 + coreutils-line) 1.115 + copy cut join paste 1.116 + CAT="system-tools|operate on fields within a line" 1.117 + DEPENDS="glibc-base" ;; 1.118 + coreutils-numeric) 1.119 + copy factor seq 1.120 + CAT="system-tools|numeric" 1.121 + DEPENDS="glibc-base gmp" ;; 1.122 + coreutils-operations) 1.123 + copy cp dd mv install rm shred 1.124 + CAT="system-tools|perform basic operations" 1.125 + DEPENDS="glibc-base acl attr" ;; 1.126 + coreutils-path) 1.127 + copy basename dirname pathchk 1.128 + CAT="system-tools|perform path manipulation" 1.129 + DEPENDS="glibc-base" ;; 1.130 + coreutils-print) 1.131 + copy echo numfmt printf yes 1.132 + CAT="system-tools|print text" 1.133 + DEPENDS="glibc-base" ;; 1.134 + coreutils-redirection) 1.135 + copy tee 1.136 + CAT="system-tools|redirection" 1.137 + DEPENDS="glibc-base" ;; 1.138 + esac 1.139 +} 1.140 + 1.141 +# Remove Busybox applets in order to not clash with ("/bin", "/sbin", 1.142 +# "/usr/bin" and "/usr/sbin" conflicts with the same filename) 1.143 +post_install_coreutils_command() 1.144 +{ 1.145 + rm "$1/bin/kill" # for /usr/bin/kill 1.146 + rm "$1/bin/nice" # for /usr/bin/nice 1.147 + rm "$1/bin/sleep" # for /usr/bin/sleep 1.148 +} 1.149 +post_install_coreutils_context_working() 1.150 +{ 1.151 + rm "$1/bin/printenv" # for /usr/bin/printenv 1.152 +} 1.153 +post_install_coreutils_disk() 1.154 +{ 1.155 + rm "$1/bin/stat" # for /usr/bin/stat 1.156 +} 1.157 +post_install_coreutils_file_attributes() 1.158 +{ 1.159 + rm "$1/bin/touch" # for /usr/bin/touch 1.160 +} 1.161 +post_install_coreutils_file_output_full() 1.162 +{ 1.163 + rm "$1/bin/base64" # for /usr/bin/base64 1.164 +} 1.165 +post_install_coreutils_file_special() 1.166 +{ 1.167 + rm "$1/bin/mktemp" # for /usr/bin/mktemp 1.168 +}