archrelease: copy trunk to extra-x86_64
[arch-packages.git] / pciutils / trunk / PKGBUILD
blob35887b034349bf43758e2ddf6d8f003ea29f597e
1 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
2 pkgname=pciutils
3 pkgver=3.8.0
4 pkgrel=1
5 pkgdesc="PCI bus configuration space access library and tools"
6 arch=(x86_64)
7 license=('GPL2')
8 url="https://mj.ucw.cz/sw/pciutils/"
9 depends=('glibc' 'hwdata' 'kmod')
10 makedepends=('git')
11 source=(#ftp://ftp.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.bz2
12         https://mj.ucw.cz/download/linux/pci/${pkgname}-${pkgver}.tar.gz{,.sign})
13         #git+https://github.com/pciutils/pciutils.git#tag=v$pkgver?signed)
14 validpgpkeys=(
15               '5558F9399CD7836850553C6EC28E7847ED70F82D' # Martin Mares <mj@ucw.cz>
16              )
17 sha256sums=('3f398d983aab42f3872e4e0ee9ecb1f0fd68f028e00246aa2ca7c3a7408d6fab'
18             'SKIP')
20 build() {
21   cd $pkgname-$pkgver
22   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 
23   cp lib/libpci.a "${srcdir}/"
24   make clean
25   make OPT="${CFLAGS}" ZLIB=no SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
28 package() {
29   cd $pkgname-$pkgver
30   make SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man DESTDIR="${pkgdir}" install install-lib
31   # this is now supplied by the hwids package
32   rm -rf "$pkgdir"/usr/{sbin/update-pciids,share/{man/man8/update-pciids.8,hwdata}}