diff options
Diffstat (limited to 'abs/core/pciutils/PKGBUILD')
-rw-r--r-- | abs/core/pciutils/PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/abs/core/pciutils/PKGBUILD b/abs/core/pciutils/PKGBUILD new file mode 100644 index 0000000..9820582 --- /dev/null +++ b/abs/core/pciutils/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 7903 2008-08-05 06:38:41Z tpowa $ +# Maintainer: Tobias Powalowski <tpowa@archlinux.org> +pkgname=pciutils +pkgver=3.0.0 +pkgrel=11 +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=('85b5dae042217cf11bca10d52210a78d') |