2015-02-16 20:03:52 +08:00
|
|
|
|
2015-03-09 04:12:35 +08:00
|
|
|
# maintainer almack
|
2012-05-13 00:11:38 +08:00
|
|
|
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgname=pciutils
|
2015-02-16 20:03:52 +08:00
|
|
|
pkgver=3.3.0
|
|
|
|
pkgrel=1
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="PCI bus configuration space access library and tools"
|
2015-03-09 04:12:35 +08:00
|
|
|
arch=('x86_64')
|
2010-03-13 23:25:19 +08:00
|
|
|
license=('GPL2')
|
|
|
|
groups=('base')
|
|
|
|
url="http://mj.ucw.cz/pciutils.html"
|
|
|
|
optdepends=('sh: required by update-pciids')
|
|
|
|
makedepends=('wget')
|
2012-06-09 10:47:32 +08:00
|
|
|
depends=('glibc' 'hwids')
|
2012-05-13 00:11:38 +08:00
|
|
|
source=(ftp://ftp.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.xz)
|
2015-02-16 20:03:52 +08:00
|
|
|
md5sums=('3c19adf32a8457983b71ff376ef7dafe')
|
2010-03-13 23:25:19 +08:00
|
|
|
|
|
|
|
build() {
|
2012-05-13 00:11:38 +08:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2010-03-13 23:25:19 +08:00
|
|
|
./update-pciids.sh
|
2012-05-13 00:11:38 +08:00
|
|
|
make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
|
|
make clean
|
|
|
|
make OPT="${CFLAGS}" ZLIB=no SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
|
|
}
|
2010-03-13 23:25:19 +08:00
|
|
|
|
2012-05-13 00:11:38 +08:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man DESTDIR="${pkgdir}" install install-lib
|
2012-06-09 10:47:32 +08:00
|
|
|
# this is now supplied by the hwids package
|
|
|
|
rm -rf $pkgdir/usr/{sbin/update-pciids,share/{man/man8/update-pciids.8.gz,hwdata}}
|
2010-03-13 23:25:19 +08:00
|
|
|
}
|