aboutsummaryrefslogtreecommitdiffstats
path: root/pciutils/PKGBUILD
blob: b39fba056f3f6b0336f7b28ca6f8cb75452621a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#Maintainer: Zee Eichel  <zee@dracos-linux.org>

pkgname=pciutils
pkgver=3.6.2
pkgrel=1
pkgdesc="PCI bus configuration space access library and tools"
arch=('x86_64')
url="http://mj.ucw.cz/sw/pciutils/"
license=('GPL2')
optdepends=("curl-7.64.0" "wget-1.20.1")
source=("https://www.kernel.org/pub/software/utils/pciutils/pciutils-${pkgver}.tar.xz")
sha256sums=("db452ec986edefd88af0d222d22f6102f8030a8633fdfe846c3ae4bde9bb93f3")

prepare() {
	cd "${srcdir}/pciutils-${pkgver}"

	wget http://pci-ids.ucw.cz/v2.2/pci.ids -O pci.ids
}

build() {
	cd "${srcdir}/pciutils-${pkgver}"
	make PREFIX=/usr SHAREDIR=/usr/share/misc SHARED=yes ZLIB=no
}

package() {
	cd "${srcdir}/pciutils-${pkgver}"

	make PREFIX=/usr SHAREDIR=/usr/share/misc SHARED=yes ZLIB=no install install-lib DESTDIR="${pkgdir}"

	chmod 755 "${pkgdir}/usr/lib/libpci.so"

	install -v -dm755 "${pkgdir}/usr/bin"
	mv -v "${pkgdir}/usr/sbin/lspci" "${pkgdir}/usr/bin"
}