2009-03-22 05:14:05 +00:00
|
|
|
# Template file for 'pciutils'
|
|
|
|
pkgname=pciutils
|
2010-02-20 16:19:31 +00:00
|
|
|
version=3.1.7
|
2010-04-22 12:19:00 +00:00
|
|
|
revision=1
|
2010-01-10 14:19:29 +00:00
|
|
|
distfiles="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$version.tar.gz"
|
2009-03-22 05:14:05 +00:00
|
|
|
build_style=custom-install
|
|
|
|
short_desc="PCI bus related utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-02-20 16:19:31 +00:00
|
|
|
checksum=0f39818eabd793bb48d5b98ca52141d8247306a85876482c0075d0c95aeccea2
|
2009-03-22 05:14:05 +00:00
|
|
|
long_desc="
|
|
|
|
The $pkgname package contains various utilities for inspecting and
|
|
|
|
setting devices connected to the PCI bus."
|
|
|
|
|
2009-12-05 02:42:43 +00:00
|
|
|
subpackages="$pkgname-devel"
|
2010-01-26 20:04:17 +00:00
|
|
|
Add_dependency run glibc
|
2009-03-22 05:14:05 +00:00
|
|
|
Add_dependency build wget
|
|
|
|
Add_dependency build which
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
cd $wrksrc
|
|
|
|
sed -i -e 's/^OPT=.*/OPT=-O2 -pipe -fPIC -DPIC/g' Makefile
|
|
|
|
./update-pciids.sh
|
|
|
|
|
2009-05-12 00:21:07 +00:00
|
|
|
make ZLIB=no DNS=no PREFIX=/usr SHAREDIR=/usr/share/hwdata \
|
2009-05-19 00:35:15 +00:00
|
|
|
MANDIR=/usr/share/man DESTDIR=${DESTDIR} \
|
|
|
|
all install-lib || exit 1
|
|
|
|
make clean
|
2009-03-23 04:32:39 +00:00
|
|
|
make ZLIB=no SHARED=yes DNS=no PREFIX=/usr SHAREDIR=/usr/share/hwdata \
|
2009-05-19 00:35:15 +00:00
|
|
|
MANDIR=/usr/share/man DESTDIR=${DESTDIR} \
|
|
|
|
all install-lib || exit 1
|
2009-03-22 05:14:05 +00:00
|
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} SHAREDIR=/usr/share/hwdata \
|
2009-05-19 00:35:15 +00:00
|
|
|
MANDIR=/usr/share/man install || exit 1
|
2009-03-22 05:14:05 +00:00
|
|
|
for i in config.h header.h pci.h types.h; do
|
|
|
|
install -D -m 644 lib/${i} ${DESTDIR}/usr/include/pci/${i}
|
|
|
|
done
|
|
|
|
cd ${DESTDIR}/usr/lib && \
|
2009-05-19 00:35:15 +00:00
|
|
|
ln -sf libpci.so.${version} libpci.so.3 && \
|
|
|
|
ln -sf libpci.so.${version} libpci.so
|
2009-03-22 05:14:05 +00:00
|
|
|
}
|