libgusb: enable gir
This commit is contained in:
parent
33f0509793
commit
5c24610dd7
2 changed files with 32 additions and 12 deletions
13
srcpkgs/libgusb/patches/fix-cross-gir.patch
Normal file
13
srcpkgs/libgusb/patches/fix-cross-gir.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/gusb/meson.build b/gusb/meson.build
|
||||
index 5276259..b6a04d5 100644
|
||||
--- gusb/meson.build
|
||||
+++ gusb/meson.build
|
||||
@@ -113,6 +113,7 @@ libgusb_girtarget = gnome.generate_gir(gusb,
|
||||
export_packages : 'gusb',
|
||||
extra_args : [
|
||||
'--c-include=gusb.h',
|
||||
+ '-DGUSB_COMPILATION',
|
||||
],
|
||||
link_with : gusb,
|
||||
dependencies : [
|
||||
|
|
@ -1,34 +1,41 @@
|
|||
# Template file for 'libgusb'
|
||||
pkgname=libgusb
|
||||
version=0.3.0
|
||||
revision=3
|
||||
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 gir gobject-introspection)
|
||||
$(vopt_if vala vala)"
|
||||
makedepends="libglib-devel libusb-devel libgudev-devel $(vopt_if vala vala-devel) usbutils"
|
||||
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="Juan RP <xtraeme@voidlinux.org>"
|
||||
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"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir vala"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
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
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share
|
||||
fi
|
||||
vmove usr/lib/pkgconfig
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue