void-packages/srcpkgs/libgusb/template
2018-08-13 02:27:50 -03:00

35 lines
1.1 KiB
Bash

# Template file for 'libgusb'
pkgname=libgusb
version=0.3.0
revision=1
build_style=meson
configure_args="-Ddocs=false -Dgir=$(vopt_if gir true false)
-Dvapi=$(vopt_if vala true false)"
hostmakedepends="pkg-config $(vopt_if gir gobject-introspection)
$(vopt_if vala vala)"
makedepends="libglib-devel libusb-devel libgudev-devel $(vopt_if vala vala-devel) usbutils"
short_desc="GLib wrapper around libusb1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1-or-later"
homepage="https://gitorious.org/gusb/"
distfiles="http://people.freedesktop.org/~hughsient/releases/${pkgname}-${version}.tar.xz"
checksum=d8e7950f99b6ae4c3e9b8c65f3692b9635289e6cff8de40c4af41b2e9b348edc
build_options="gir vala"
desc_option_vala="Generate bindings for vala"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
libgusb-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
if [ "$build_options_gir" ]; then
vmove usr/share
fi
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}