void-packages/srcpkgs/pciutils/template

60 lines
1.7 KiB
Plaintext
Raw Normal View History

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