void-packages/srcpkgs/libusb-compat/template

34 lines
967 B
Text

# Template file for 'libusb-compat'
pkgname=libusb-compat
version=0.1.4
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libusb-devel"
short_desc="A libusb-0.1 compatibility library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://libusb.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/libusb/$pkgname-$version.tar.bz2"
checksum=ed5bdd160c7b01ef767fb931a81b454f46226d1e2cf58502ced758d3e5a9fdc4
long_desc="
$pkgname is a replacement for libusb-0.1. However, instead of being an actual
implementation, libusb-0.1 is more of a compatibility layer (or wrapper) which
just converts libusb-0.1 calls into their libusb-1.0 equivalents."
libusb-compat-devel_package() {
depends="libusb-compat>=${version}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove "usr/lib/*.a"
vmove usr/lib/pkgconfig
}
}
libusb-compat_package() {
pkg_install() {
vmove usr
}
}