From 81555e3bd23c74ce915d246ca51fa65d84c22ae7 Mon Sep 17 00:00:00 2001 From: srv Date: Mon, 5 May 2025 15:29:27 -0500 Subject: First commit --- lshw-git/PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 lshw-git/PKGBUILD (limited to 'lshw-git/PKGBUILD') diff --git a/lshw-git/PKGBUILD b/lshw-git/PKGBUILD new file mode 100644 index 0000000..119fb9f --- /dev/null +++ b/lshw-git/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: 31337h4ck3r at gmail dot com +# Contributor: katt +# Contributor: Sergej Pupykin +# Contributor: Stefano Zamprogno +# Contributor: Chuck Yang +pkgname=lshw-git +pkgver=B.02.20.r6.g98b74f6 +pkgrel=1 +pkgdesc='A small tool to provide detailed information on the hardware configuration of the machine' +url=https://ezix.org/project/wiki/HardwareLiSter +license=(GPL) +arch=(x86_64) +depends=(gcc-libs hwdata) +optdepends=('gtk3: for gtk-lshw') +makedepends=(gtk3 sqlite git gettext) # Removed docbook-utils and perl-sgmls +conflicts=("${pkgname%-git}") +provides=("${pkgname%-git}") +source=(git+https://ezix.org/src/pkg/lshw.git) +sha256sums=('SKIP') +pkgver() { + cd "${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} +prepare() { + cd "${pkgname%-git}" + sed -i 's|/usr/bin/gtk-lshw|/usr/sbin/gtk-lshw|' src/gui/integration/gtk-lshw.desktop + sed -i '/^LDFLAGS=$/d' src/core/Makefile src/gui/Makefile +} +build() { + cd "${pkgname%-git}" + export VERSION=$pkgver + make SBINDIR=/usr/bin + make SBINDIR=/usr/bin gui +} +package() { + cd "${pkgname%-git}" + make DESTDIR="$pkgdir"/ SBINDIR=/usr/bin install + make DESTDIR="$pkgdir"/ SBINDIR=/usr/bin install-gui + install -Dm0644 src/gui/integration/gtk-lshw.desktop -t "$pkgdir"/usr/share/applications + #install -Dm0644 src/gui/integration/gtk-lshw.pam -t "$pkgdir"/usr/share/doc/$pkgname + #install -Dm0644 src/gui/integration/console.apps -t "$pkgdir"/usr/share/doc/$pkgname + rm -f "$pkgdir"/usr/share/lshw/{pci,usb}.ids +} -- cgit v1.2.3