From 7f2dbe74d27d435e573604c278394254716695ad Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 22 Mar 2009 06:14:05 +0100 Subject: [PATCH] Added pciutils-3.1.2 template. --HG-- extra : convert_revision : 2a5a6dec7e47af26adf72f60f2896c17d1a94bd6 --- templates/pciutils/template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 templates/pciutils/template diff --git a/templates/pciutils/template b/templates/pciutils/template new file mode 100644 index 00000000000..df23908c4e2 --- /dev/null +++ b/templates/pciutils/template @@ -0,0 +1,34 @@ +# Template file for 'pciutils' +pkgname=pciutils +version=3.1.2 +distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$pkgname-$version.tar.gz" +build_style=custom-install +short_desc="PCI bus related utilities" +maintainer="Juan RP " +checksum=7b682329410a39e6d61183e168342e1d125c875a35acd4c746ff1bec2ab6789d +long_desc=" + The $pkgname package contains various utilities for inspecting and + setting devices connected to the PCI bus." + +Add_dependency full glibc +Add_dependency full zlib +Add_dependency build wget +Add_dependency build which + +do_install() +{ + cd $wrksrc + sed -i -e 's/^OPT=.*/OPT=-O2 -pipe -fPIC -DPIC/g' Makefile + ./update-pciids.sh + + make ZLIB=yes SHARED=yes DNS=no PREFIX=/usr SHAREDIR=/usr/share/hwdata \ + MANDIR=/usr/share/man all || exit 1 + make PREFIX=/usr DESTDIR=${DESTDIR} SHAREDIR=/usr/share/hwdata \ + MANDIR=/usr/share/man install install-lib || exit 1 + for i in config.h header.h pci.h types.h; do + install -D -m 644 lib/${i} ${DESTDIR}/usr/include/pci/${i} + done + cd ${DESTDIR}/usr/lib && \ + ln -s libpci.so.${version} libpci.so.3 && \ + ln -s libpci.so.${version} libpci.so +}