2012-03-19 11:49:39 +00:00
|
|
|
# Template file for 'libgusb'
|
|
|
|
pkgname=libgusb
|
2013-03-28 15:53:53 +00:00
|
|
|
version=0.1.6
|
2014-02-20 17:04:33 +00:00
|
|
|
revision=2
|
2012-03-19 11:49:39 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--disable-static"
|
2014-02-20 17:04:33 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2013-03-28 15:53:53 +00:00
|
|
|
makedepends="libusb-devel libgudev-devel"
|
2012-03-19 11:49:39 +00:00
|
|
|
short_desc="GLib wrapper around libusb1"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="https://gitorious.org/gusb/"
|
|
|
|
license="LGPL-2.1"
|
2012-11-13 10:22:27 +00:00
|
|
|
distfiles="http://people.freedesktop.org/~hughsient/releases/$pkgname-${version}.tar.xz"
|
2013-03-28 15:53:53 +00:00
|
|
|
checksum=900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b
|
2014-02-20 17:04:33 +00:00
|
|
|
|
|
|
|
# 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
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libgusb-devel_package() {
|
|
|
|
depends="libudev-devel ${sourcepkg}-${version}_${revision}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-20 17:04:33 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|