void-packages/srcpkgs/pciutils/template
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00

38 lines
1.2 KiB
Text

# Template file for 'pciutils'
pkgname=pciutils
version=3.1.4
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$pkgname-$version.tar.gz"
build_style=custom-install
short_desc="PCI bus related utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=676b941ddaf912387092c6925597b14cef4f35f495bdbb229c1e5947151a1b20
long_desc="
The $pkgname package contains various utilities for inspecting and
setting devices connected to the PCI bus."
Add_dependency full 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
./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 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
}