aboutsummaryrefslogtreecommitdiffstats
path: root/main/pciutils/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/pciutils/APKBUILD')
-rw-r--r--main/pciutils/APKBUILD24
1 files changed, 6 insertions, 18 deletions
diff --git a/main/pciutils/APKBUILD b/main/pciutils/APKBUILD
index 3088a7b145a..b8724ec1e89 100644
--- a/main/pciutils/APKBUILD
+++ b/main/pciutils/APKBUILD
@@ -1,24 +1,21 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pciutils
-pkgver=3.8.0
+pkgver=3.12.0
pkgrel=0
pkgdesc="PCI bus configuration space access library and tools"
url="http://mj.ucw.cz/pciutils.html"
arch="all"
license="GPL-2.0-only"
-depends="hwids-pci"
+depends="hwdata-pci"
makedepends="linux-headers"
options="!check"
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
-source="https://www.kernel.org/pub/software/utils/pciutils/pciutils-$pkgver.tar.gz
- fix-linking-pci-malloc-Makefile.patch
- pread.patch
+source="$pkgname-$pkgver.tar.gz::https://github.com/pciutils/pciutils/archive/refs/tags/v$pkgver.tar.gz
"
build() {
- sed -i -e "106s/^/\#/" Makefile
- make OPT="$CFLAGS" ZLIB=no \
+ make OPT="$CFLAGS -fPIC -flto=auto" ZLIB=no \
SHARED=yes \
PREFIX=/usr \
SHAREDIR=/usr/share/hwdata \
@@ -31,14 +28,7 @@ package() {
SHARED=yes \
SHAREDIR="$pkgdir"/usr/share/hwdata \
MANDIR="$pkgdir"/usr/share/man \
- install
-
- install -d "$pkgdir"/usr/lib
- ln -s libpci.so.${pkgver%%.*} "$pkgdir"/usr/lib/libpci.so
- install -D -m 644 lib/libpci.pc "$pkgdir"/usr/lib/pkgconfig/libpci.pc
- for i in config.h header.h pci.h types.h; do
- install -D -m 644 lib/$i "$pkgdir"/usr/include/pci/$i
- done
+ install install-lib
# this is now supplied by the hwids package
rm -rf "$pkgdir"/usr/sbin/update-pciids
@@ -47,7 +37,5 @@ package() {
}
sha512sums="
-49b8ccc87cc82326744de7f0306c0245a5bb87740d3e96b18378cc07477ca176bd3ffaf699bfe9954d61381c57f65aa703c07fa6406fe2be289917dc1715600d pciutils-3.8.0.tar.gz
-520b39602078e4325d7dac2d460547b360f7b52c668d88cf3d776c59246c8cfcb537b7b4f50575da9d2fcea1e207b3e99626ce4f23df890d2565b7dac1db2d94 fix-linking-pci-malloc-Makefile.patch
-aa1d3272500180256929b39a5fc4ea38ddb6a9fad090d732832ded9cc396303cf56efc91cfdeb76edbcfefc9a7c8eb058562c3c2b09a9090a59d3e68c27cec62 pread.patch
+2157cda808acd685b985bd8b8e63bd868a042c6316859bb5bfd08f6de52172570dd6780fb3390a5abbf3b4c16d7e4bec05b4034caeee28b5a11cb3a8efc299ce pciutils-3.12.0.tar.gz
"