summaryrefslogtreecommitdiffstats
path: root/base/pciutils/Pkgfile
blob: 0552788c4119d603dcd463e6bc89ec5ee3c0bd0f (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
# Description: Jeu de programmes pour le listing des modules PCI
# URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=pciutils
version=3.1.3
release=2
source=( ftp://ftp.kernel.org/pub/software/utils/$name/$name-$version.tar.bz2 )


build() {
	cd $name-$version
	CFLAGS="${CFLAGS} -fPIC -DPIC"
	sed -i -e 's/^OPT=.*/OPT=-O2 -pipe -fPIC -DPIC/g' Makefile
  ./update-pciids.sh
		
	make PREFIX=/usr
	mkdir -p $PKG/usr/share/man
	mkdir -p $PKG/usr/lib
	make PREFIX=$PKG/usr install
	install -v -m 755 -d $PKG/usr/include/pci
        install -v -m 644 lib/libpci.a $PKG/usr/lib
        install -v -m 644 lib/*.h $PKG/usr/include/pci      
}