1
0
forked from ports/opt
opt/pciutils/Pkgfile
2005-11-17 16:42:42 +00:00

25 lines
724 B
Plaintext

# Description: Linux PCI Utilities
# 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
version=2.2.0
release=1
source=(ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$name-$version.tar.gz)
build() {
cd $name-$version
mkdir -p $PKG/usr/{lib,share,include/pci}
wget -P $PKG/usr/share http://pciids.sourceforge.net/pci.ids
sed -i "s/-O2/$CFLAGS/" Makefile
make PREFIX=/usr
make PREFIX=$PKG/usr install
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*}
}