# SliTaz package receipt. PACKAGE="inxi" VERSION="3.3.13" CATEGORY="utilities" TAGS="system-information" SHORT_DESC="Full featured CLI system information tool." MAINTAINER="al.bobylev@gmail.com" LICENSE="GPL3" WEB_SITE="https://smxi.org/docs/inxi.htm" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/smxi/$PACKAGE/archive/$VERSION-1.tar.gz" DEPENDS="bash coreutils-disk gawk pciutils perl procps sed" current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin install -m0755 $src/inxi $fs/usr/bin # Configure inxi to work with SliTaz inxi="$fs/usr/bin/inxi" sed -i 's|/var/run/dmesg.boot|/var/log/dmesg.log|' \ $inxi # SliTaz packages sed -i -e 's|df:coreutils|df:coreutils-disk|' \ -e 's|readlink:coreutils|readlink:coreutils-file-special|' \ -e 's|tr:coreutils|tr:coreutils-character|' \ -e 's|uname:uname|uname:coreutils-context-system|' \ -e 's|wc:coreutils|wc:coreutils-file-summarize|' \ -e 's|glxinfo:mesa-utils|glxinfo:mesa-demos|' \ -e 's|xdpyinfo:X11-utils|xdpyinfo:xorg-xdpyinfo|' \ -e 's|xprop:X11-utils|xprop:xorg-xprop|' \ -e 's|xrandr:x11-xserver-utils|xrandr:xorg-xrandr|' \ -e 's|dig:dnsutils|dig:bind-client|' \ $inxi sed -i 's|hddtemp:hddtemp|hddtemp:|' \ $inxi # no package sed -i -e 's|ip:iproute|ip:iproute2|' \ -e 's|strings:binutils|strings:busybox|' \ -e 's|runlevel:sysvinit|runlevel:|' \ $inxi # no package sed -i 's|print_lines_basic "0" "" "Debian/Ubuntu:.*$|print_lines_basic "0" "" "SliTaz:^$package_deb"|' \ $inxi }