core/pciutils/Pkgfile

28 lines
826 B
Plaintext
Raw Normal View History

2006-05-07 10:12:29 +02:00
# Description: Library and utilities to access the PCI bus configuration registers
2006-02-23 18:19:35 +01:00
# URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
# Packager: Markus Ackermann, maol at symlink dot ch
# Maintainer: J<>rgen Daubert, juergen dot daubert at t-online dot de
name=pciutils
2006-05-07 10:12:29 +02:00
version=2.2.3
release=1
source=(http://www.kernel.org/pub/software/utils/$name/$name-$version.tar.gz \
2006-05-07 10:12:29 +02:00
http://jue.li/crux/files/pci.ids-060505.gz)
2006-02-23 18:19:35 +01:00
build() {
mkdir -p $PKG/usr/{lib,share,include/pci}
2006-05-07 10:12:29 +02:00
gunzip -c $SRC/pci.ids-060505.gz > $PKG/usr/share/pci.ids
cd $name-$version
2006-02-23 18:19:35 +01:00
sed -i "s/-O2/$CFLAGS/" Makefile
make PREFIX=/usr
make PREFIX=$PKG/usr install
2006-05-07 10:12:29 +02:00
2006-02-23 18:19:35 +01:00
cd lib
./configure
make
cp libpci.a $PKG/usr/lib
cp *.h $PKG/usr/include/pci
rm $PKG/usr/include/pci/i386-io-{h*,s*,w*}
}