2009-03-22 05:14:05 +00:00
|
|
|
# Template file for 'pciutils'
|
|
|
|
pkgname=pciutils
|
2014-01-22 08:22:32 +00:00
|
|
|
version=3.2.1
|
|
|
|
revision=1
|
2013-05-26 08:22:50 +00:00
|
|
|
hostmakedepends="pkg-config which"
|
|
|
|
makedepends="hwids zlib-devel libkmod-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="hwids"
|
2009-03-22 05:14:05 +00:00
|
|
|
short_desc="PCI bus related utilities"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-06 07:51:28 +00:00
|
|
|
license="GPL-2"
|
2013-04-22 14:18:23 +00:00
|
|
|
homepage="http://mj.ucw.cz/pciutils.html"
|
|
|
|
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
|
2014-01-22 08:22:32 +00:00
|
|
|
checksum=b31131b721fa26378b4af61b1c49986ff40fe590bc210545b210b6b774337858
|
2009-03-22 05:14:05 +00:00
|
|
|
|
2011-11-06 07:51:28 +00:00
|
|
|
do_build() {
|
2013-05-26 08:22:50 +00:00
|
|
|
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no AR=${AR} \
|
|
|
|
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
2011-11-06 07:51:28 +00:00
|
|
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
|
|
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
|
2009-05-19 00:35:15 +00:00
|
|
|
make clean
|
2013-05-26 08:22:50 +00:00
|
|
|
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=yes \
|
|
|
|
AR=${AR} RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
2011-11-06 07:51:28 +00:00
|
|
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata \
|
2013-04-11 15:09:16 +00:00
|
|
|
STRIP="-s --strip-program=${STRIP} " \
|
2011-11-06 07:51:28 +00:00
|
|
|
MANDIR=/usr/share/man DESTDIR=${DESTDIR} install install-lib
|
|
|
|
vinstall ${XBPS_MASTERDIR}/tmp/libpci.a 644 usr/lib
|
2012-05-24 06:08:17 +00: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 05:14:05 +00:00
|
|
|
}
|
2013-04-14 09:13:30 +00:00
|
|
|
|
|
|
|
pciutils-devel_package() {
|
2014-01-22 08:22:32 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-05-26 08:22:50 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 09:13:30 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-01-22 08:22:32 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 09:13:30 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/man/man7
|
|
|
|
}
|
|
|
|
}
|