jobcomm/inxi-git/PKGBUILD

75 lines
2.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=inxi-git
pkgver=3.3.33.r0.g6960559e
pkgrel=02
pkgdesc="Full featured CLI system information tool"
url="https://smxi.org/docs/inxi.htm"
depends=(coreutils pciutils perl procps-ng util-linux net-tools)
makedepends=(git)
conflicts=(inxi)
optdepends=(
"bind: -i wlan IP"
"binutils: strings: -I sysvinit version"
"bluez-tools: bt-adapter: -E bluetooth data (if no hciconfig)"
"bluez-utils-compat: hciconfig: -E bluetooth HCI data"
"curl: -i (if no dig); -w,-W; -U"
"dmidecode: inxi -M if no sys machine data"
'doas: -Dx hddtemp-user; -o file-user (alt for sudo)'
"file: inxi -o unmounted file system"
"freeipmi: ipmi-sensors: -s IPMI sensors"
"hddtemp: inxi -Dx show hdd temp"
"iproute2: inxi -i ip lan"
"kmod: modinfo: Ax; -Nx module version"
"ipmitool: -s IPMI sensors"
"lvm2: lvs: -L LVM data"
"kmod: inxi -Ax,-Nx module version"
"lm_sensors: inxi -s sensors output"
"mdadm: -Ra advanced mdraid data"
"mesa-utils: inxi -G glx info"
"perl-io-socket-ssl: -U; -w,-W; -i (if dig not installed)"
"perl-cpanel-json-xs: --output json - required for export"
"perl-json-xs: JSON::XS: --output json (legacy)"
"perl-xml-dumper: --output xml - Crude and raw"
"sudo: inxi -Dx hddtemp-user;-o file-user"
"tree: --debugger 20,21 /sys tree"
"upower: -sx attached device battery info"
"usbutils: inxi -A usb audio;-N usb networking"
"wget: -i (if no dig); -w,-W; -U"
"wmctrl: -S active window manager (not all wm)"
"xorg-xdpyinfo: inxi -G multi screen resolution"
"xorg-xdriinfo: xdriinfo: -G (X) DRI driver (if missing, fallback to Xorg log)"
"xorg-xprop: inxi -S desktop data"
"xorg-xrandr: inxi -G single screen resolution"
)
#source=("git+https://github.com/smxi/inxi.git")
source=("git+https://codeberg.org/smxi/inxi.git")
pkgver() {
cd "$srcdir/${pkgname/-git/}"
git describe --long --tags | sed 's/1-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/${pkgname/-git/}"
install -Dm755 "${pkgname/-git/}" "${pkgdir}/usr/bin/${pkgname/-git/}"
install -Dm644 "${pkgname/-git/}.1" "${pkgdir}/usr/share/man/man1/${pkgname/-git/}.1"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL3)
sha256sums=(SKIP)
## cdc153e9ee92cb95381e5eda1574aacbfd572daed5ffd18a20f375df933e9e66 inxi-git-3.3.33.r0.g6960559e-02-x86_64.pkg.tar.lz