wok-current view inxi/receipt @ rev 24086

libtorrent needs atomic memory access
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 10 17:20:34 2021 +0000 (2021-07-10)
parents 4fa6f2bddd14
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="inxi"
4 VERSION="3.0.37"
5 CATEGORY="utilities"
6 TAGS="system-information"
7 SHORT_DESC="Full featured CLI system information tool."
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL3"
10 WEB_SITE="https://smxi.org/docs/inxi.htm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/smxi/$PACKAGE/archive/$VERSION-1.tar.gz"
15 DEPENDS="bash coreutils-disk gawk pciutils procps sed"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin
27 mkdir -p $fs/usr/share/man/man1
29 install -m0755 $src/inxi $fs/usr/bin
30 install -m0644 $src/inxi.1 $fs/usr/share/man/man1
32 # Configure inxi to work with SliTaz
34 inxi="$fs/usr/bin/inxi"
35 sed -i 's|/var/run/dmesg.boot|/var/log/dmesg.log|' \
36 $inxi
37 # SliTaz packages
38 sed -i 's|df:coreutils|df:coreutils-disk|' \
39 $inxi
40 sed -i 's|readlink:coreutils|readlink:coreutils-file-special|' \
41 $inxi
42 sed -i 's|tr:coreutils|tr:coreutils-character|' \
43 $inxi
44 sed -i 's|uname:uname|uname:coreutils-context-system|' \
45 $inxi
46 sed -i 's|wc:coreutils|wc:coreutils-file-summarize|' \
47 $inxi
48 sed -i 's|glxinfo:mesa-utils|glxinfo:mesa-demos|' \
49 $inxi
50 sed -i 's|xdpyinfo:X11-utils|xdpyinfo:xorg-xdpyinfo|' \
51 $inxi
52 sed -i 's|xprop:X11-utils|xprop:xorg-xprop|' \
53 $inxi
54 sed -i 's|xrandr:x11-xserver-utils|xrandr:xorg-xrandr|' \
55 $inxi
56 sed -i 's|dig:dnsutils|dig:bind-client|' \
57 $inxi
58 sed -i 's|hddtemp:hddtemp|hddtemp:|' \
59 $inxi # no package
60 sed -i 's|ip:iproute|ip:iproute2|' \
61 $inxi
62 sed -i 's|strings:binutils|strings:busybox|' \
63 $inxi
64 sed -i 's|runlevel:sysvinit|runlevel:|' \
65 $inxi # no package
66 sed -i 's|print_lines_basic "0" "" "Debian/Ubuntu:.*$|print_lines_basic "0" "" "SliTaz:^$package_deb"|' \
67 $inxi
68 }