31 lines
1 KiB
Text
31 lines
1 KiB
Text
# Template file for 'pciutils'
|
|
pkgname=pciutils
|
|
version=3.1.9
|
|
homepage="http://mj.ucw.cz/pciutils.html"
|
|
distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${version}.tar.gz"
|
|
makedepends="which wget"
|
|
short_desc="PCI bus related utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2"
|
|
checksum=8ae7d320c50f02b015f5e2bb17a9f815cf201dae81b6bbd46b8a45552d00a178
|
|
long_desc="
|
|
The $pkgname package contains various utilities for inspecting and
|
|
setting devices connected to the PCI bus."
|
|
|
|
subpackages="$pkgname-devel"
|
|
|
|
do_build() {
|
|
./update-pciids.sh
|
|
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 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
|
|
}
|