55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
# Template file for 'pciutils'
|
|
pkgname=pciutils
|
|
version=3.6.4
|
|
revision=1
|
|
hostmakedepends="pkg-config"
|
|
makedepends="zlib-devel libkmod-devel"
|
|
depends="hwids"
|
|
short_desc="PCI bus related utilities"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://mj.ucw.cz/pciutils.html"
|
|
changelog="https://raw.githubusercontent.com/pciutils/pciutils/master/ChangeLog"
|
|
distfiles="https://github.com/pciutils/pciutils/archive/v${version}.tar.gz"
|
|
checksum=551d0ac33f030868b7e95c29e58dc2b1882455dbc9c15c15adf7086e664131f1
|
|
|
|
do_build() {
|
|
make OPT="${CFLAGS}" SHARED=no AR=${AR} \
|
|
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
|
HOST=${XBPS_TARGET_MACHINE%-musl}-linux ZLIB=yes \
|
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
cp lib/libpci.a ${XBPS_MASTERDIR}/tmp
|
|
make clean
|
|
make OPT="${CFLAGS}" SHARED=yes AR=${AR} \
|
|
RANLIB=${RANLIB} PREFIX=/usr CC=${CC} \
|
|
HOST=${XBPS_TARGET_MACHINE%-musl}-linux ZLIB=yes \
|
|
SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
}
|
|
|
|
do_install() {
|
|
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata STRIP= \
|
|
MANDIR=/usr/share/man SBINDIR=/usr/bin \
|
|
DESTDIR=${DESTDIR} install install-lib
|
|
vinstall ${XBPS_MASTERDIR}/tmp/libpci.a 644 usr/lib
|
|
|
|
# Set corrects perms to shlib.
|
|
chmod 755 ${DESTDIR}/usr/lib/libpci.so.${version}
|
|
|
|
# Remove update-pciids and pci.ids, handled by hwids.
|
|
rm -rf ${DESTDIR}/usr/share/hwdata
|
|
rm -f ${DESTDIR}/usr/bin/update-pciids
|
|
rm -f ${DESTDIR}/usr/share/man/man8/update-pciids.8
|
|
}
|
|
|
|
pciutils-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man7
|
|
}
|
|
}
|