From 6126f8ed973e5b876568ed75a5d9e8651aee97f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 26 May 2013 10:22:50 +0200 Subject: [PATCH] pciutils: enable zlib/kmod support. --- srcpkgs/pciutils/template | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/srcpkgs/pciutils/template b/srcpkgs/pciutils/template index 69aa02cb803..be1e530a047 100644 --- a/srcpkgs/pciutils/template +++ b/srcpkgs/pciutils/template @@ -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 " 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"