From 54178bd391ca35687d7a220b60eb4af31b815fe8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 2 Nov 2011 13:42:22 +0100 Subject: [PATCH] libgudev: really split from udev pkg, install libs into /usr/lib. --- srcpkgs/libgudev/libgudev-devel.template | 4 +- srcpkgs/libgudev/template | 71 +++++++++++------------- 2 files changed, 35 insertions(+), 40 deletions(-) diff --git a/srcpkgs/libgudev/libgudev-devel.template b/srcpkgs/libgudev/libgudev-devel.template index 61f3c9bc49..b2b7eb81e5 100644 --- a/srcpkgs/libgudev/libgudev-devel.template +++ b/srcpkgs/libgudev/libgudev-devel.template @@ -1,11 +1,13 @@ # Template file for 'libgudev-devel'. # -short_desc="${short_desc} - development glib bindings" +short_desc="${short_desc} - development files" long_desc="${long_desc} This package contains the libgudev development files (static libs, headers, etc), a library to interact with udev through the GLib bindings." +revision=1 + Add_dependency run libudev-devel Add_dependency run glib-devel Add_dependency run libgudev diff --git a/srcpkgs/libgudev/template b/srcpkgs/libgudev/template index 91ba143218..5e29009507 100644 --- a/srcpkgs/libgudev/template +++ b/srcpkgs/libgudev/template @@ -1,48 +1,41 @@ -# Template file for 'libgudev' - -. ${XBPS_SRCPKGDIR}/udev/template -unset revision run_depends systemd_services conf_files subpackages -unset keep_empty_dirs post_install - +# Template file for 'libudev' pkgname=libgudev -wrksrc="udev-${version}" -short_desc="/dev/ and hotplug management daemon (glib bindings)" +version=174 +revision=1 +wrksrc=udev-${version} +#distfiles="${KERNEL_SITE}/utils/kernel/hotplug/udev-${version}.tar.bz2" +distfiles="http://people.freedesktop.org/~kay/udev-${version}.tar.bz2" +build_style=gnu-configure +configure_args="--without-selinux --disable-rule-generator +--enable-introspection --enable-gudev --disable-static +--disable-hwdb --disable-keymap --disable-mtd_probe" +short_desc="GObject-based wrapper library for libudev" +maintainer="Juan RP " +homepage="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" +license="GPL-2" +checksum=832662179a5ff9782769b0feadd51aaaea6e603f91f6ef0ec8bb6aab0fb3ad1a long_desc=" - udev is a daemon which dynamically creates and removes device nodes from - /dev/, handles hotplug events and loads drivers at boot time. + This library makes it much simpler to use libudev from programs already using + GObject. It also makes it possible to easily use libudev from other + programming languages, such as Javascript, because of GObject introspection + support." - This package contains libgudev, a library to interact with udev through - the GLib bindings." - -subpackages="libgudev-devel" +subpackages="${pkgname}-devel" Add_dependency run glibc -Add_dependency run libudev Add_dependency run glib +Add_dependency run libudev + +Add_dependency build pkg-config +Add_dependency build gperf +Add_dependency build glib-devel Add_dependency build gobject-introspection -do_build() -{ - ./configure ${configure_args} --enable-gudev --enable-introspection - make ${makejobs} -} - -do_install() -{ - make DESTDIR=${DESTDIR} install - - mkdir -p ${wrksrc}/tmp/lib ${wrksrc}/tmp/usr/lib/pkgconfig \ - ${wrksrc}/tmp/usr/share/gtk-doc/html ${wrksrc}/tmp/usr/include - - mv ${DESTDIR}/lib/libgudev* ${wrksrc}/tmp/lib - mv ${DESTDIR}/usr/lib/libgudev* ${wrksrc}/tmp/usr/lib - mv ${DESTDIR}/usr/lib/girepository* ${wrksrc}/tmp/usr/lib - mv ${DESTDIR}/usr/include/gudev* ${wrksrc}/tmp/usr/include - mv ${DESTDIR}/usr/lib/pkgconfig/gudev* \ - ${wrksrc}/tmp/usr/lib/pkgconfig - mv ${DESTDIR}/usr/share/gtk-doc/html/gudev \ - ${wrksrc}/tmp/usr/share/gtk-doc/html - mv ${DESTDIR}/usr/share/gir* ${wrksrc}/tmp/usr/share - rm -rf ${DESTDIR}/* - mv ${wrksrc}/tmp/* ${DESTDIR} +post_install() { + # remove stuff in udev pkg. + for f in etc sbin usr/sbin lib usr/libexec usr/share/man \ + usr/share/pkgconfig usr/share/gtk-doc/html/libudev; do + rm -rf ${DESTDIR}/${f} + done + find ${DESTDIR} -name libudev\* -delete }