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

View file

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