Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Ignore BPM archives and signatures
|
||||
*.bpm
|
||||
*.bpm.sig
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Codeberg repository
|
||||
REPO="smxi/inxi"
|
||||
|
||||
# Get version from tag name using Codeberg Rest API
|
||||
VERSION=$(curl -s -L https://codeberg.org/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name)
|
||||
|
||||
# Replace '-' with '_'
|
||||
VERSION=${VERSION//-/_}
|
||||
|
||||
# Remove 'v'
|
||||
#VERSION=${VERSION//v/}
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -0,0 +1,44 @@
|
||||
name: inxi
|
||||
description: A full featured system information script
|
||||
version: 3.3.40_1
|
||||
revision: 1
|
||||
url: https://smxi.org/docs/inxi.htm
|
||||
license: GPL3-or-later
|
||||
maintainers:
|
||||
- [email protected]
|
||||
architecture: any
|
||||
output_architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- coreutils
|
||||
- pciutils
|
||||
- perl
|
||||
- procps-ng
|
||||
- util-linux
|
||||
optional_depends:
|
||||
- bind:dig:-i wlan IP"
|
||||
- binutils:strings:-I sysvinit version"
|
||||
- bluez:bt-adapter:-E bluetooth data (if no hciconfig)"
|
||||
- curl:-i (if no dig); -w,-W; -U"
|
||||
- dmidecode:-M if no sys machine data; -m"
|
||||
- file:-o unmounted file system (if no lsblk)"
|
||||
- iproute2:ip:-i ip LAN"
|
||||
- kmod:modinfo:Ax; -Nx module version"
|
||||
- lvm2:lvs:-L LVM data"
|
||||
- lm_sensors:sensors:-s sensors output"
|
||||
- mdadm:-Ra advanced mdraid data"
|
||||
- mesa:glxinfo:-G (X) glx info"
|
||||
- smartmontools:smartctl:-Da advanced data"
|
||||
- tree:--debugger 20,21 /sys tree"
|
||||
- upower:-sx attached device battery info"
|
||||
- vulkan-tools:vulkaninfo:-G vulkan info"
|
||||
- wget:-i (if no dig); -w,-W; -U"
|
||||
- xorg-xdpyinfo:xdpyinfo:-G (X) Screen resolution, dpi; -Ga Screen size"
|
||||
- xorg-xdriinfo:xdriinfo:-G (X) DRI driver (if missing, fallback to Xorg log)"
|
||||
- xorg-xprop:xprop:-S (X) desktop data"
|
||||
- xorg-xrandr:xrandr:-G (X) monitors(s) resolution; -Ga monitor data"
|
||||
downloads:
|
||||
- url: https://codeberg.org/smxi/inxi/archive/${BPM_PKG_VERSION//_/-}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: b3f307f06c3b969bd65151d39729b97a767af42fddd3d9bab971135c0e7cd873
|
||||
@@ -0,0 +1,15 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
install -Dm755 inxi "$BPM_OUTPUT"/usr/bin/inxi
|
||||
|
||||
# Install man page
|
||||
install -Dm644 inxi.1 "$BPM_OUTPUT"/usr/share/man/man1/inxi.1
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/inxi/LICENSE.txt
|
||||
}
|
||||
Reference in New Issue
Block a user