From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/lshw/PKGBUILD | 30 ++++++++++++++++++++++++++++++ community/lshw/abi_stdlib.diff | 23 +++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 community/lshw/PKGBUILD create mode 100644 community/lshw/abi_stdlib.diff (limited to 'community/lshw') diff --git a/community/lshw/PKGBUILD b/community/lshw/PKGBUILD new file mode 100644 index 000000000..723026e3b --- /dev/null +++ b/community/lshw/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 29087 2010-10-10 07:47:30Z spupykin $ +# Maintainer: Sergej Pupykin +# Contributor: Stefano Zamprogno +# Contributor: Chuck Yang + +pkgname=lshw +pkgver=B.02.15 +pkgrel=1 +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') +optdepends=('gtk2') +makedepends=('gcc') +source=(http://ezix.org/software/files/lshw-$pkgver.tar.gz + abi_stdlib.diff) +md5sums=('970bd9eb05fa3ae139a24a417465c54c' + '7adcdd7a2be2feba956a9832cf36abdf') + +build() { + cd $srcdir/$pkgname-$pkgver + +# patch -Np1 -i ../abi_stdlib.diff || return 1 + + make || return 1 + make gui || return 1 + make DESTDIR=$pkgdir/ install || return 1 + make DESTDIR=$pkgdir/ install-gui +} diff --git a/community/lshw/abi_stdlib.diff b/community/lshw/abi_stdlib.diff new file mode 100644 index 000000000..ffe88d1d8 --- /dev/null +++ b/community/lshw/abi_stdlib.diff @@ -0,0 +1,23 @@ +diff -wbBur lshw-B.02.14/src/core/abi.cc lshw-B.02.14.my//src/core/abi.cc +--- lshw-B.02.14/src/core/abi.cc 2009-02-12 22:53:09.000000000 +0000 ++++ lshw-B.02.14.my//src/core/abi.cc 2010-05-24 14:30:18.000000000 +0000 +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + + __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $"); + +diff -wbBur lshw-B.02.14/src/core/scsi.cc lshw-B.02.14.my//src/core/scsi.cc +--- lshw-B.02.14/src/core/scsi.cc 2009-02-12 22:53:09.000000000 +0000 ++++ lshw-B.02.14.my//src/core/scsi.cc 2010-05-24 14:32:13.000000000 +0000 +@@ -842,7 +842,7 @@ + + if (!controller) + { +- controller = node.addChild(hwNode::hwNode("scsi", hw::storage)); ++ controller = node.addChild(hwNode("scsi", hw::storage)); + if (controller) + { + controller->setLogicalName(host_logicalname(number)); -- cgit v1.2.3-54-g00ecf