blob: 35700a2c0c16389102bda985b64214d365fb1a31 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pciutils
pkgver=3.6.0
pkgrel=0
pkgdesc="PCI bus configuration space access library and tools"
url="http://mj.ucw.cz/pciutils.html"
arch="all"
license="GPL"
depends="hwdata-pci"
makedepends="linux-headers"
options="!check"
install=
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
source="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$pkgver.tar.gz
fix-linking-pci-malloc-Makefile.patch
pread.patch
musl-fix.patch
"
build() {
cd "$builddir"
sed -i -e "106s/^/\#/" Makefile
make OPT="$CFLAGS" ZLIB=no \
SHARED=yes \
PREFIX=/usr \
SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man \
all
}
package() {
cd "$builddir"
make PREFIX="$pkgdir"/usr \
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
}
sha512sums="44cdf8360d2c84cc8e51a9b7ca36db9d349c6cc987b113e0ad6fe98519c8a586d11c65be1182359a750c54e4b9dd2bec83b0b0895d6bf05c082fa88d4d8c8262 pciutils-3.6.0.tar.gz
520b39602078e4325d7dac2d460547b360f7b52c668d88cf3d776c59246c8cfcb537b7b4f50575da9d2fcea1e207b3e99626ce4f23df890d2565b7dac1db2d94 fix-linking-pci-malloc-Makefile.patch
aa1d3272500180256929b39a5fc4ea38ddb6a9fad090d732832ded9cc396303cf56efc91cfdeb76edbcfefc9a7c8eb058562c3c2b09a9090a59d3e68c27cec62 pread.patch
2720c3a412a6b291f14d26d0461d4a9cd9aab0f23481e929f00ebb47fc484ff20ba678349848ef4afaadb4dfbad9a2e3c970cc6e5c4e1bdc98c9970f190b8322 musl-fix.patch"
|