pciutils: update to 3.1.8.

This commit is contained in:
Juan RP 2011-11-06 08:51:28 +01:00
parent a5e0b62c35
commit 97ac5aed72
2 changed files with 22 additions and 33 deletions

View File

@ -1,20 +1,17 @@
# Template file for 'pciutils-devel'.
#
short_desc="${sourcepkg} development files"
short_desc="${sourcepkg} - development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
revision=1
Add_dependency run glibc-devel
Add_dependency run pciutils
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/lib*.a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/man/man7 ${DESTDIR}/usr/share/man
vmove usr/include usr
vmove "usr/lib/*.a" usr/lib
vmove usr/lib/pkgconfig usr/lib
vmove usr/share/man/man7 usr/share/man
}

View File

@ -1,12 +1,12 @@
# Template file for 'pciutils'
pkgname=pciutils
version=3.1.7
revision=1
#distfiles="http://www.kernel.org/pub/software/utils/$pkgname/$pkgname-$version.tar.gz"
distfiles="http://www.ibiblio.org/pub/linux/hardware/$pkgname-$version.tar.gz"
version=3.1.8
homepage="http://mj.ucw.cz/pciutils.html"
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
short_desc="PCI bus related utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0f39818eabd793bb48d5b98ca52141d8247306a85876482c0075d0c95aeccea2
license="GPL-2"
checksum=15a7de19f23f95eeda2487bedc6b4c11eddea9c30bba35573775b4d46b7a46ca
long_desc="
The $pkgname package contains various utilities for inspecting and
setting devices connected to the PCI bus."
@ -14,27 +14,19 @@ long_desc="
subpackages="$pkgname-devel"
Add_dependency run glibc
Add_dependency build wget
Add_dependency build which
do_install()
{
cd $wrksrc
sed -i -e 's/^OPT=.*/OPT=-O2 -pipe -fPIC -DPIC/g' Makefile
do_build() {
./update-pciids.sh
make ZLIB=no DNS=no PREFIX=/usr SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man DESTDIR=${DESTDIR} \
all install-lib || exit 1
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
make clean
make ZLIB=no SHARED=yes DNS=no PREFIX=/usr SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man DESTDIR=${DESTDIR} \
all install-lib || exit 1
make PREFIX=/usr DESTDIR=${DESTDIR} SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man install || exit 1
for i in config.h header.h pci.h types.h; do
install -D -m 644 lib/${i} ${DESTDIR}/usr/include/pci/${i}
done
cd ${DESTDIR}/usr/lib && \
ln -sf libpci.so.${version} libpci.so.3 && \
ln -sf libpci.so.${version} libpci.so
make OPT="${XBPS_CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=yes PREFIX=/usr \
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
}
do_install() {
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata \
MANDIR=/usr/share/man DESTDIR=${DESTDIR} install install-lib
vinstall ${XBPS_MASTERDIR}/tmp/libpci.a 644 usr/lib
}