From 8a68dfdc83d1dc1604385a5b489260f9906c6899 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Feb 2014 18:04:33 +0100 Subject: [PATCH] libgusb: added gir build option; remove long_desc. --- srcpkgs/libgusb/template | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/srcpkgs/libgusb/template b/srcpkgs/libgusb/template index bde54982347..7f256853f80 100644 --- a/srcpkgs/libgusb/template +++ b/srcpkgs/libgusb/template @@ -1,10 +1,10 @@ # Template file for 'libgusb' pkgname=libgusb version=0.1.6 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static" -hostmakedepends="pkg-config gobject-introspection" +hostmakedepends="pkg-config" makedepends="libusb-devel libgudev-devel" short_desc="GLib wrapper around libusb1" maintainer="Juan RP " @@ -12,12 +12,22 @@ homepage="https://gitorious.org/gusb/" license="LGPL-2.1" distfiles="http://people.freedesktop.org/~hughsient/releases/$pkgname-${version}.tar.xz" checksum=900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b -long_desc=" - GUsb is a GObject wrapper for libusb1 that makes it easy to do - asynchronous control, bulk and interrupt transfers with proper - cancellation and integration into a mainloop. - This makes it easy to integrate low level USB transfers with your - high-level application or system daemon." + +# Package build options +build_options="gir" +desc_option_gir="Enable support for building gobject introspection data" + +# Disable gir for cross builds. +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi + +if [ "$build_option_gir" ]; then + configure_args+=" --enable-introspection" + makedepends+=" gobject-introspection" +else + configure_args+=" --disable-introspection" +fi libgusb-devel_package() { depends="libudev-devel ${sourcepkg}-${version}_${revision}" @@ -26,5 +36,6 @@ libgusb-devel_package() { vmove usr/include vmove usr/share vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" } }