# Contributor: Carlo Landmeter # Maintainer: pkgname=libgusb pkgver=0.1.6 pkgrel=0 pkgdesc="GLib wrapper around libusb" url="https://gitorious.org/gusb/" arch="all" license="LGPL" depends="" depends_dev="udev-dev libusbx-dev glib-dev gobject-introspection-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://people.freedesktop.org/~hughsient/releases/libgusb-$pkgver.tar.xz" _builddir="$srcdir"/libgusb-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="672058e7a49a38259ab6ea01470c2fa2 libgusb-0.1.6.tar.xz" sha256sums="900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b libgusb-0.1.6.tar.xz" sha512sums="3e5da2d4683ec787dae5282ba750b23d7b79e8dde60a98c4f7d6ca26892b365733c090d475ec385a8adc8a49ecad0914fbcd02713bbe2fdf353f87c0c7aa9938 libgusb-0.1.6.tar.xz"