pciutils: enable zlib/kmod support.

This commit is contained in:
Juan RP 2013-05-26 10:22:50 +02:00
parent 59cd15a1e4
commit 6126f8ed97

View file

@ -1,8 +1,9 @@
# Template file for 'pciutils'
pkgname=pciutils
version=3.2.0
revision=1
makedepends="hwids"
revision=2
hostmakedepends="pkg-config which"
makedepends="hwids zlib-devel libkmod-devel"
short_desc="PCI bus related utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
@ -14,13 +15,13 @@ long_desc="
setting devices connected to the PCI bus."
do_build() {
make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no AR=${AR} \
RANLIB=${RANLIB} PREFIX=/usr CC="${CC}" \
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=no AR=${AR} \
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
make clean
make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=yes \
AR=${AR} RANLIB=${RANLIB} PREFIX=/usr CC="${CC}" \
make OPT="${CFLAGS} -fPIC -DPIC" SHARED=yes \
AR=${AR} RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
}
@ -40,8 +41,8 @@ do_install() {
}
pciutils-devel_package() {
depends="pciutils>=$version"
short_desc+=" -- development files"
depends="pciutils>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"