summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/pciutils/PKGBUILD
blob: 838f800ac848d0b280a48310838a28041ae5ac21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $Id: PKGBUILD 7903 2008-08-05 06:38:41Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=pciutils
pkgver=3.1.5
pkgrel=1
pkgdesc="PCI bus configuration space access library and tools"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://atrey.karlin.mff.cuni.cz/~mj/pciutils.html"
makedepends=('wget')
depends=('glibc')
source=(ftp://ftp.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.bz2)

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  CFLAGS="${CFLAGS} -fPIC -DPIC"
  sed -i -e 's/^OPT=.*/OPT=-O2 -pipe -fPIC -DPIC/g' Makefile
  ./update-pciids.sh

  make ZLIB=no PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all || return 1
  make PREFIX=${startdir}/pkg/usr SHAREDIR=${startdir}/pkg/usr/share/hwdata MANDIR=${startdir}/pkg/usr/share/man install
  install -d ${startdir}/pkg/usr/lib
  install -m644 lib/libpci.a ${startdir}/pkg/usr/lib
  for i in config.h header.h pci.h types.h; do
    install -D -m 644 lib/${i} ${startdir}/pkg/usr/include/pci/${i}
  done
}
md5sums=('7ccf8ae2353033158652bdca4e4aad0a')