wok-current view coreutils-file-special/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (2 months ago)
parents 82d54eca72be
children
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-file-special"
4 VERSION="9.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities that work with special file types."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 DEPENDS="glibc-base"
12 WANTED="coreutils"
14 HOST_ARCH="i486 x86_64"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mandir="$fs/usr/share/man/man1"
20 mkdir -p $mandir
22 while read i
23 do
24 mkdir -p $fs$(dirname $i)
25 cp -a $install$i $fs$i
26 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
27 done <<EOT
28 /bin/ln
29 /bin/mkdir
30 /bin/mknod
31 /bin/rmdir
32 /usr/bin/link
33 /usr/bin/mkfifo
34 /usr/bin/mktemp
35 /usr/bin/readlink
36 /usr/bin/realpath
37 /usr/bin/unlink
38 EOT
39 }
41 post_install()
42 {
43 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
44 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
45 rm "$1/bin/mktemp" # /usr/bin/mktemp
46 }
48 post_remove()
49 {
50 # Restore all Busybox applets that have been replaced
51 while read i
52 do
53 busybox ln -s /bin/busybox "$1$i"
54 done <<EOT
55 /bin/ln
56 /bin/mkdir
57 /bin/mknod
58 /bin/mktemp
59 /bin/rmdir
60 /usr/bin/mkfifo
61 /usr/bin/realpath
62 EOT
63 }