# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=lshw
pkgver=02.19.2
_pkgver="B.$pkgver"
pkgrel=2
pkgdesc="Hardware Lister"
url="https://ezix.org/project/wiki/HardwareLiSter"
arch="all"
license="GPL-3.0-or-later"
makedepends="sqlite-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang"
source="https://ezix.org/software/files/lshw-$_pkgver.tar.gz
	fix-musl-sc_long_bit.patch
	wrapper-for-basename.patch
	2b1c730b493d647bbab4854713571458e82a81e7.patch
	15565229509455527de9ce7cbb9530e2b31d043b.patch
	"
builddir="$srcdir"/$pkgname-$_pkgver

build() {
	make RPM_OPT_FLAGS=-DNONLS
}

check() {
	./src/lshw -version
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="f3abc6241fe7912740f11b5b97a1f7778cb7cc69f5209b83063cbc1d3aa7b082dedb3aac4119ce100391547400ed6bb2d413ca47de50794e1066f31961be41a5  lshw-B.02.19.2.tar.gz
21d5692b50086018685232261e4851cd6dcd84660512dde58317c06a3b10d73d04d7f0b164264cb9c4dd4154947672dbbf1f288291bab5ec952e57458b71ab42  fix-musl-sc_long_bit.patch
7adbb35c9ba0af3ba698c472226781ae1a518deb1f85f6cb8b53ac05c84b40ae94cbfd5761b58709b1d5726660f9eb159cf1233a77b2fa6565010dde17167b7d  wrapper-for-basename.patch
58bbdda190b245460bf67d94e407a3a8aa9741a8f43df2b8fee157d2619bd55f1fd69cfb06318f750caa307cf484b52803e5d6222c8332107936ae44a43aea24  2b1c730b493d647bbab4854713571458e82a81e7.patch
42ec43bca9455d91f6c3cdf8fe023d78e09a0b94fdf9d149b6784edbfef406fc66a081efca56d5dea6c186abb2723341b6c716cf63c46561ba2d749a3e4088bf  15565229509455527de9ce7cbb9530e2b31d043b.patch"
