2009-03-22 06:14:05 +01:00
|
|
|
# Template file for 'pciutils'
|
|
|
|
pkgname=pciutils
|
2012-04-13 10:04:33 +02:00
|
|
|
version=3.1.9
|
2012-06-05 18:49:00 +02:00
|
|
|
revision=2
|
2011-11-06 08:51:28 +01:00
|
|
|
homepage="http://mj.ucw.cz/pciutils.html"
|
|
|
|
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
|
2012-05-24 08:08:17 +02:00
|
|
|
subpackages="$pkgname-devel"
|
|
|
|
fulldepends="hwids"
|
2009-03-22 06:14:05 +01:00
|
|
|
short_desc="PCI bus related utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-06 08:51:28 +01:00
|
|
|
license="GPL-2"
|
2012-04-13 10:04:33 +02:00
|
|
|
checksum=8ae7d320c50f02b015f5e2bb17a9f815cf201dae81b6bbd46b8a45552d00a178
|
2009-03-22 06:14:05 +01:00
|
|
|
long_desc="
|
|
|
|
The $pkgname package contains various utilities for inspecting and
|
|
|
|
setting devices connected to the PCI bus."
|
|
|
|
|
2011-11-06 08:51:28 +01:00
|
|
|
do_build() {
|
|
|
|
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
|
2009-05-19 02:35:15 +02:00
|
|
|
make clean
|
2011-11-06 08:51:28 +01:00
|
|
|
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=yes PREFIX=/usr \
|
|
|
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2012-05-24 08:08:17 +02:00
|
|
|
|
|
|
|
# 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
|
2009-03-22 06:14:05 +01:00
|
|
|
}
|