core/pciutils/PKGBUILD

29 lines
1.0 KiB
Bash
Raw Normal View History

2010-03-13 23:25:19 +08:00
pkgname=pciutils
2015-05-26 06:07:34 +08:00
pkgver=3.3.1
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')
depends=('glibc' 'hwids')
source=(ftp://ftp.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.xz)
2015-05-26 06:07:34 +08:00
md5sums=('4c340a317987d61a11ee2cf139ef1191')
2010-03-13 23:25:19 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2010-03-13 23:25:19 +08:00
./update-pciids.sh
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
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man DESTDIR="${pkgdir}" install install-lib
# 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
}