mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
appstream-glib: enable gir
This commit is contained in:
parent
db9c144a3f
commit
03f3215e0f
2 changed files with 24 additions and 8 deletions
15
srcpkgs/appstream-glib/patches/0003-fix-as-compilation.patch
Normal file
15
srcpkgs/appstream-glib/patches/0003-fix-as-compilation.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/libappstream-glib/meson.build b/libappstream-glib/meson.build
|
||||||
|
index 37d4747..3555fa0 100644
|
||||||
|
--- libappstream-glib/meson.build
|
||||||
|
+++ libappstream-glib/meson.build
|
||||||
|
@@ -235,6 +235,9 @@ if get_option('introspection')
|
||||||
|
'Gio-2.0',
|
||||||
|
'GdkPixbuf-2.0'
|
||||||
|
],
|
||||||
|
+ extra_args : [
|
||||||
|
+ '-DAS_COMPILATION',
|
||||||
|
+ ],
|
||||||
|
link_with : asglib,
|
||||||
|
install : true,
|
||||||
|
)
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
# Template file for 'appstream-glib'
|
# Template file for 'appstream-glib'
|
||||||
pkgname=appstream-glib
|
pkgname=appstream-glib
|
||||||
version=0.7.14
|
version=0.7.14
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
|
build_helper="gir"
|
||||||
configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false
|
configure_args="-Dgtk-doc=false -Drpm=false -Dstemmer=false
|
||||||
-Dintrospection=$(vopt_if gir true false)"
|
-Dintrospection=$(vopt_if gir true false)"
|
||||||
hostmakedepends="gcab gperf pkg-config $(vopt_if gir 'gobject-introspection')"
|
hostmakedepends="gcab gperf pkg-config glib-devel"
|
||||||
makedepends="gcab-devel gtk+3-devel json-glib-devel libarchive-devel
|
makedepends="gcab-devel gtk+3-devel json-glib-devel libarchive-devel
|
||||||
libsoup-devel libyaml-devel"
|
libsoup-devel libyaml-devel"
|
||||||
short_desc="Install and update applications"
|
short_desc="Install and update applications"
|
||||||
|
@ -17,12 +18,12 @@ distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
|
||||||
checksum=6dccad15f9d9a59dec6d259170a2010ee4a4b87475335a122a5d8b5e654a1a58
|
checksum=6dccad15f9d9a59dec6d259170a2010ee4a4b87475335a122a5d8b5e654a1a58
|
||||||
|
|
||||||
build_options="gir"
|
build_options="gir"
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
|
||||||
build_options_default="gir"
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
else
|
x86_64-musl) build_options_default+=" gir" ;;
|
||||||
# glib-resources-compile
|
*-musl) ;;
|
||||||
hostmakedepends+=" glib-devel"
|
*) build_options_default+=" gir" ;;
|
||||||
fi
|
esac
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm -rf -- "${DESTDIR}"/usr/share/installed-tests
|
rm -rf -- "${DESTDIR}"/usr/share/installed-tests
|
||||||
|
|
Loading…
Add table
Reference in a new issue