blob: afb3dfbf776ea68eafe05e4e18e5ff53263085dc (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=pciutils
pkgver=3.1.10
pkgrel=1
pkgdesc="PCI bus configuration space access library and tools"
url="http://mj.ucw.cz/pciutils.html"
arch="all"
license="GPL"
depends="hwdata-pci"
makedepends=
install=
subpackages="$pkgname-doc $pkgname-dev"
source="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
sed -i -e "106s/^/\#/" Makefile
make ZLIB=no \
PREFIX=/usr \
SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man \
all || return 1
}
package() {
cd "$_builddir"
make PREFIX="$pkgdir"/usr \
SHAREDIR="$pkgdir"/usr/share/hwdata \
MANDIR="$pkgdir"/usr/share/man \
install
install -d "$pkgdir"/usr/lib
install -m644 lib/libpci.a "$pkgdir"/usr/lib
for i in config.h header.h pci.h types.h; do
install -D -m 644 lib/${i} "$pkgdir"/usr/include/pci/${i}
done
}
md5sums="51ded74e4184d4a6c9f2ada95c28c067 pciutils-3.1.10.tar.gz"
|