void-packages/srcpkgs/libgusb/template

46 lines
1.3 KiB
Bash

# Template file for 'libgusb'
pkgname=libgusb
version=0.4.6
revision=1
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dintrospection=$(vopt_if gir true false)
-Dvapi=$(vopt_if vala true false)"
hostmakedepends="pkg-config $(vopt_if vala vala)"
makedepends="libglib-devel libusb-devel libgudev-devel $(vopt_if vala vala-devel)
usbutils json-glib-devel"
short_desc="GLib wrapper around libusb1"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/hughsie/libgusb"
changelog="https://raw.githubusercontent.com/hughsie/libgusb/master/NEWS"
distfiles="https://github.com/hughsie/libgusb/releases/download/${version}/libgusb-${version}.tar.xz"
checksum=1b0422bdcd72183272ac42eec9398c5a0bc48a02f618fa3242c468cbbd003049
# requires access to USB devices, not available on CI
make_check=ci-skip
build_options="gir vala"
build_options_default="gir vala"
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=true"
else
configure_args+=" -Dtests=false"
fi
libgusb-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}