PKGBUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
  2. pkgname=pciutils
  3. pkgver=3.6.1
  4. pkgrel=1
  5. pkgdesc="PCI bus configuration space access library and tools"
  6. arch=(x86_64 ppc64le)
  7. license=('GPL2')
  8. groups=('base')
  9. url="http://mj.ucw.cz/sw/pciutils/"
  10. depends=('glibc' 'hwids' 'kmod')
  11. source=(#ftp://ftp.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.bz2
  12. ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${pkgver}.tar.gz
  13. ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/${pkgname}-${pkgver}.tar.gz.sign)
  14. validpgpkeys=(
  15. '5558F9399CD7836850553C6EC28E7847ED70F82D' # Martin Mares <mj@ucw.cz>
  16. )
  17. md5sums=('d72855146e2a778ecfe4b482faa122a4'
  18. 'SKIP')
  19. build() {
  20. cd "${srcdir}/${pkgname}-${pkgver}"
  21. make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man SBINDIR=/usr/bin lib/libpci.a
  22. cp lib/libpci.a "${srcdir}/"
  23. make clean
  24. make OPT="${CFLAGS}" ZLIB=no SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
  25. }
  26. package() {
  27. cd "${srcdir}/${pkgname}-${pkgver}"
  28. make SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man DESTDIR="${pkgdir}" install install-lib
  29. # this is now supplied by the hwids package
  30. rm -rf $pkgdir/usr/{sbin/update-pciids,share/{man/man8/update-pciids.8,hwdata}}
  31. }