# Template file for 'libusbx'
pkgname=libusbx
version=1.0.15
revision=1
build_style=gnu-configure
short_desc="Library that provides generic access to USB devices"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://libusbx.org"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=bb5ec30e53e007d13c37b4edd929435ac224bb71b8fc08fa37ec9e3e81037963

libusbx-devel_package() {
	depends="${sourcepkg}-${version}_${revision}"
	provides="libusb-devel-${version}_${revision}"
	replaces="libusb-devel>=0"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove usr/lib/pkgconfig
	}
}

libusbx_package() {
	provides="libusb-${version}_${revision}"
	replaces="libusb>=0"
	pkg_install() {
		vmove usr
	}
}
