From 0b01b7d56b7d17dfe23e720347ac73d57e5dcab4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 5 Dec 2009 03:42:43 +0100 Subject: [PATCH] pciutils: converted to subpkgs. --HG-- extra : convert_revision : a195e5b91572da8277a42b99d15fefae64e22e35 --- srcpkgs/pciutils-devel | 1 + srcpkgs/pciutils/pciutils-devel.template | 19 +++++++++++++++++++ srcpkgs/pciutils/template | 2 ++ 3 files changed, 22 insertions(+) create mode 120000 srcpkgs/pciutils-devel create mode 100644 srcpkgs/pciutils/pciutils-devel.template diff --git a/srcpkgs/pciutils-devel b/srcpkgs/pciutils-devel new file mode 120000 index 00000000000..83e90586f44 --- /dev/null +++ b/srcpkgs/pciutils-devel @@ -0,0 +1 @@ +pciutils \ No newline at end of file diff --git a/srcpkgs/pciutils/pciutils-devel.template b/srcpkgs/pciutils/pciutils-devel.template new file mode 100644 index 00000000000..b746d7f7d56 --- /dev/null +++ b/srcpkgs/pciutils/pciutils-devel.template @@ -0,0 +1,19 @@ +# Template file for 'pciutils-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run pciutils + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share/man + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/man/man7 ${DESTDIR}/usr/share/man +} diff --git a/srcpkgs/pciutils/template b/srcpkgs/pciutils/template index 9844baabce9..171efb093ba 100644 --- a/srcpkgs/pciutils/template +++ b/srcpkgs/pciutils/template @@ -1,6 +1,7 @@ # Template file for 'pciutils' pkgname=pciutils version=3.1.4 +revision=1 distfiles="ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/$pkgname-$version.tar.gz" build_style=custom-install short_desc="PCI bus related utilities" @@ -10,6 +11,7 @@ long_desc=" The $pkgname package contains various utilities for inspecting and setting devices connected to the PCI bus." +subpackages="$pkgname-devel" Add_dependency full glibc Add_dependency build wget Add_dependency build which