playerctl: enable gir
This commit is contained in:
parent
ddc4fcc572
commit
42a9cf96c0
2 changed files with 22 additions and 7 deletions
13
srcpkgs/playerctl/patches/fix-gir-cross.patch
Normal file
13
srcpkgs/playerctl/patches/fix-gir-cross.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/playerctl/meson.build b/playerctl/meson.build
|
||||||
|
index ccace6a..22a6ec1 100644
|
||||||
|
--- playerctl/meson.build
|
||||||
|
+++ playerctl/meson.build
|
||||||
|
@@ -95,6 +95,7 @@ if get_option('introspection')
|
||||||
|
'playerctl-player.c',
|
||||||
|
'playerctl-player.h',
|
||||||
|
],
|
||||||
|
+ extra_args : [ '-DPLAYERCTL_COMPILATION' ],
|
||||||
|
nsversion: playerctl_major_version + '.0',
|
||||||
|
namespace: 'Playerctl',
|
||||||
|
includes: ['GObject-2.0'],
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'playerctl'
|
# Template file for 'playerctl'
|
||||||
pkgname=playerctl
|
pkgname=playerctl
|
||||||
version=2.0.1
|
version=2.0.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
|
build_helper="gir"
|
||||||
configure_args="-Dintrospection=$(vopt_if gir 'true' 'false')
|
configure_args="-Dintrospection=$(vopt_if gir 'true' 'false')
|
||||||
$(vopt_if doc '-Dgtk-doc=true' '-Dgtk-doc=false')"
|
-Dgtk-doc=$(vopt_if doc 'true' 'false')"
|
||||||
hostmakedepends="pkg-config glib-devel $(vopt_if doc gtk-doc)
|
hostmakedepends="pkg-config glib-devel $(vopt_if doc gtk-doc)"
|
||||||
$(vopt_if gir gobject-introspection)"
|
|
||||||
makedepends="libglib-devel"
|
makedepends="libglib-devel"
|
||||||
short_desc="MPRIS command-line controller and library"
|
short_desc="MPRIS command-line controller and library"
|
||||||
maintainer="Duncaen <duncaen@voidlinux.org>"
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
||||||
|
@ -18,9 +18,11 @@ checksum=f02f2fbeb2b51fd906af1e01404485ef316e24f616eac00eeee3cdfa54310b5a
|
||||||
build_options="doc gir"
|
build_options="doc gir"
|
||||||
desc_option_doc="Build documentation" # fails :(
|
desc_option_doc="Build documentation" # fails :(
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
build_options_default="gir"
|
x86_64-musl) build_options_default+=" gir" ;;
|
||||||
fi
|
*-musl) ;;
|
||||||
|
*) build_options_default+=" gir" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
playerctl-devel_package() {
|
playerctl-devel_package() {
|
||||||
depends="playerctl>=${version}_${revision}"
|
depends="playerctl>=${version}_${revision}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue