void-packages/srcpkgs/libgusb/template
2019-02-23 20:32:50 +01:00

41 lines
1.2 KiB
Bash

# Template file for 'libgusb'
pkgname=libgusb
version=0.3.0
revision=4
build_style=meson
build_helper="gir"
configure_args="-Ddocs=false -Dgir=$(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"
short_desc="GLib wrapper around libusb1"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/hughsie/libgusb"
distfiles="http://people.freedesktop.org/~hughsient/releases/${pkgname}-${version}.tar.xz"
checksum=d8e7950f99b6ae4c3e9b8c65f3692b9635289e6cff8de40c4af41b2e9b348edc
build_options="gir vala"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
*-musl) ;;
*) build_options_default+=" gir vala" ;;
esac
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
}
}