aboutsummaryrefslogtreecommitdiffstats
path: root/pciutils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pciutils/PKGBUILD')
-rw-r--r--pciutils/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/pciutils/PKGBUILD b/pciutils/PKGBUILD
new file mode 100644
index 0000000..b39fba0
--- /dev/null
+++ b/pciutils/PKGBUILD
@@ -0,0 +1,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"
+}