# Depends on: eudev
name=pciutils
-version=3.4.0
+version=3.5.6
release=1
-source=(ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$name-$version.tar.gz)
+source=(https://www.kernel.org/pub/software/utils/pciutils/$name-$version.tar.xz)
build() {
cd $name-$version
- make CC="$CC" AR="$AR" RANLIB="$RANLIB" OPT="$CFLAGS" PREFIX=/usr ZLIB=no
- make DESTDIR=$PKG PREFIX=/usr MANDIR=/usr/man STRIP="" install install-lib
+
+ local CONF="ZLIB=no DESTDIR=$PKG PREFIX=/usr"
+
+ make -j1 $CONF OPT="$CFLAGS" CC="$CC" AR="$AR" RANLIB="$RANLIB" STRIP="-s --strip-program $STRIP" SHARED=yes install install-lib
+ make clean
+ make -j1 $CONF OPT="$CFLAGS" CC="$CC" AR="$AR" RANLIB="$RANLIB" STRIP="-s --strip-program $STRIP" SHARED=no install install-lib
}