# Maintainer: Natanael Copa pkgname=libusbx pkgver=1.0.16 _ver=${pkgver/_/-} pkgrel=0 pkgdesc="Library to enable user space application programs to communicate with USB devices" url="http://libusb.sourceforge.net/" arch="all" license="LGPL2+" subpackages="$pkgname-dev" depends="" makedepends="udev-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$_ver build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm "$pkgdir"/usr/lib/*.la || return 1 } md5sums="7f5715d624cd6c26b30a317eb6c2fe5e libusbx-1.0.16.tar.bz2" sha256sums="5b335cf9572d793da6ced55bce633894288a8ff39557f07ccc798f2cb74cb580 libusbx-1.0.16.tar.bz2" sha512sums="a92fd006afab80c051edc725105bbf1c7b79bdc050fde750d81bf050195e1f19be6217682c0cdf047754eed1be5848c915aac3d5364acc72a8324ce0f8b9e698 libusbx-1.0.16.tar.bz2"