summaryrefslogtreecommitdiff
path: root/community/lshw
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/lshw
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/lshw')
-rw-r--r--community/lshw/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/lshw/PKGBUILD b/community/lshw/PKGBUILD
new file mode 100644
index 000000000..46563504b
--- /dev/null
+++ b/community/lshw/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 91516 2013-05-23 11:14:32Z spupykin $
+# Maintainer: 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
+pkgver=B.02.16
+pkgrel=5
+pkgdesc="A small tool to provide detailed information on the hardware configuration of the machine."
+url="http://ezix.org/project/wiki/HardwareLiSter"
+license=('GPL')
+arch=('i686' 'x86_64')
+depends=('gcc-libs' 'hwids')
+optdepends=('gtk2')
+makedepends=('gcc' 'gtk2' 'sqlite')
+source=(http://ezix.org/software/files/lshw-$pkgver.tar.gz)
+md5sums=('67479167add605e8f001097c30e96d0d')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ sed -i 's|/usr/bin/gtk-lshw|/usr/sbin/gtk-lshw|' src/gui/integration/gtk-lshw.desktop
+ make SBINDIR=/usr/bin
+ make SBINDIR=/usr/bin gui
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir/ SBINDIR=/usr/bin install
+ make DESTDIR=$pkgdir/ SBINDIR=/usr/bin install-gui
+ install -Dm0644 src/gui/integration/gtk-lshw.desktop $pkgdir/usr/share/applications/gtk-lshw.desktop
+ install -Dm0644 src/gui/integration/gtk-lshw.pam $pkgdir/usr/share/doc/$pkgname/gtk-lshw.pam
+ install -Dm0644 src/gui/integration/console.apps $pkgdir/usr/share/doc/$pkgname/console.apps
+ rm -f $pkgdir/usr/share/lshw/{pci,usb}.ids
+}