2012-03-19 12:49:39 +01:00
|
|
|
# Template file for 'libgusb'
|
|
|
|
pkgname=libgusb
|
2015-01-12 09:33:15 +01:00
|
|
|
version=0.2.4
|
2014-11-24 10:32:39 +01:00
|
|
|
revision=1
|
2012-03-19 12:49:39 +01:00
|
|
|
build_style=gnu-configure
|
2014-11-24 10:32:39 +01:00
|
|
|
configure_args="--disable-static $(vopt_enable gir introspection)"
|
|
|
|
hostmakedepends="pkg-config $(vopt_if gir gobject-introspection)"
|
|
|
|
makedepends="libglib-devel libusb-devel libgudev-devel"
|
2012-03-19 12:49:39 +01: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 11:22:27 +01:00
|
|
|
distfiles="http://people.freedesktop.org/~hughsient/releases/$pkgname-${version}.tar.xz"
|
2015-01-12 09:33:15 +01:00
|
|
|
checksum=437966fb45e30b8e757b2c200daf5d4e7dd22bf5aa80e151e3b1807270d38083
|
2014-02-20 18:04:33 +01:00
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libgusb-devel_package() {
|
2014-11-24 10:32:39 +01:00
|
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-02-20 18:04:33 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|