wok view coreutils-context-working/receipt @ rev 19522

Up: tzdata (2016j), slitaz-i18n (161124)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Nov 24 16:58:15 2016 +0200 (2016-11-24)
parents 6fab3264ba87
children 9b6a3a5c1a07
line source
1 # SliTaz package receipt.
3 PACKAGE="coreutils-context-working"
4 VERSION="8.25"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU utilities related to the working context."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/coreutils/coreutils.html"
11 WANTED="coreutils"
12 DEPENDS="glibc-base"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mandir="$fs/usr/share/man/man1"
18 mkdir -p $mandir
20 while read i; do
21 mkdir -p $fs$(dirname $i)
22 cp -a $install$i $fs$i
23 find $install -name "$(basename $i).*" -exec cp -a \{\} $mandir \;
24 done <<EOT
25 /bin/pwd
26 /bin/stty
27 /usr/bin/printenv
28 /usr/bin/tty
29 EOT
30 }
32 post_install()
33 {
34 # Remove Busybox applets in order to not clash with ("/bin", "/sbin",
35 # "/usr/bin" and "/usr/sbin" conflicts with the same filename)
36 rm "$1/bin/printenv" # /usr/bin/printenv
37 }
39 post_remove()
40 {
41 # Restore all Busybox applets that have been replaced
42 while read i; do
43 busybox ln -s /bin/busybox "$1$i"
44 done <<EOT
45 /bin/printenv
46 /bin/pwd
47 /bin/stty
48 /usr/bin/tty
49 EOT
50 }