Name pciutils
Description PCI bus configuration space access library and tools
Version 3.13.0-r1
Package Base pciutils
Homepage http://mj.ucw.cz/pciutils.html
Maintainers ['Leonardo Arena <rnalrd@alpinelinux.org>']
Contributors ['Leonardo Arena <rnalrd@alpinelinux.org>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/main/pciutils
Sources ['$pkgname-3.13.0-r1.tar.gz::https://github.com/pciutils/pciutils/archive/refs/tags/v3.13.0-r1.tar.gz']
Dependencies ['hwdata-pci', 'libc.musl-x86_64.so.1', 'libpci.so.3']
Optional-Dependencies []
Build-Dependencies ['linux-headers']
Provides ['cmd:lspci=3.13.0-r1', 'cmd:pcilmr=3.13.0-r1', 'cmd:setpci=3.13.0-r1']
Builddate 03-11-2024 19:51:23
Architecture x86_64
Distro-Version v3.22
Licenses ['GPL-2.0-only']
Hash Q1Qm2PNn8/mMa8lq40GPFzp04Z50A=
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pciutils
pkgver=3.13.0
pkgrel=1
pkgdesc="PCI bus configuration space access library and tools"
url="http://mj.ucw.cz/pciutils.html"
arch="all"
license="GPL-2.0-only"
depends="hwdata-pci"
makedepends="linux-headers"
options="!check"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/pciutils/pciutils/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make OPT="$CFLAGS -fPIC -flto=auto" ZLIB=no \
		SHARED=yes \
		PREFIX=/usr \
		SHAREDIR=/usr/share/hwdata \
		MANDIR=/usr/share/man \
		all
}

package() {
	make PREFIX="$pkgdir"/usr \
		SHARED=yes \
		SHAREDIR="$pkgdir"/usr/share/hwdata \
		MANDIR="$pkgdir"/usr/share/man \
		install install-lib

	# this is now supplied by the hwids package
	rm -rf "$pkgdir"/usr/sbin/update-pciids
	rm -rf "$pkgdir"/usr/share/man/man8/update-pciids.8
	rm -rf "$pkgdir"/usr/share/hwdata
}

sha512sums="
e1d39502d312d74f6663ee6c3dc976c08f1859b7ec3dc9553aa9925111c59287d2b9085bf94e674c8062e0ee6a1153af7533aba09e342a1369d083d48c2da4f7  pciutils-3.13.0.tar.gz
"