pciutils: use and depend on hwids.

This commit is contained in:
Juan RP 2012-05-24 08:08:17 +02:00
parent 785eba71f8
commit 4d05ca4e13
1 changed files with 11 additions and 4 deletions

View File

@ -1,9 +1,11 @@
# Template file for 'pciutils'
pkgname=pciutils
version=3.1.9
revision=1
homepage="http://mj.ucw.cz/pciutils.html"
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
makedepends="which wget"
subpackages="$pkgname-devel"
fulldepends="hwids"
short_desc="PCI bus related utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -12,10 +14,7 @@ long_desc="
The $pkgname package contains various utilities for inspecting and
setting devices connected to the PCI bus."
subpackages="$pkgname-devel"
do_build() {
./update-pciids.sh
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
@ -28,4 +27,12 @@ do_install() {
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man DESTDIR=${DESTDIR} install install-lib
vinstall ${XBPS_MASTERDIR}/tmp/libpci.a 644 usr/lib
# Set corrects perms to shlib.
chmod 755 ${DESTDIR}/usr/lib/libpci.so.${version}
# Remove update-pciids and pci.ids, handled by hwids.
rm -rf ${DESTDIR}/usr/share/hwdata
rm -f ${DESTDIR}/usr/sbin/update-pciids
rm -f ${DESTDIR}/usr/share/man/man8/update-pciids.8
}