diff options
Diffstat (limited to 'lshw-git/PKGBUILD')
-rw-r--r-- | lshw-git/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
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 <magunasu.b97@gmail.com> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Stefano Zamprogno <stefano dot zamprogno at gmail dot com> +# Contributor: Chuck Yang <Chuck.Yang@gmail.com> +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 +} |