From 693894776d3ce0e268b41f14cee34880a30d79d9 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Thu, 26 Oct 2023 18:15:59 +0200 Subject: [PATCH] libdbusmenu: Add recipe --- .../libdbusmenu/libdbusmenu-glib_git.bb | 20 ++++++++++++ .../libdbusmenu/libdbusmenu-gtk_git.bb | 31 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 recipes-extended/libdbusmenu/libdbusmenu-glib_git.bb create mode 100644 recipes-extended/libdbusmenu/libdbusmenu-gtk_git.bb diff --git a/recipes-extended/libdbusmenu/libdbusmenu-glib_git.bb b/recipes-extended/libdbusmenu/libdbusmenu-glib_git.bb new file mode 100644 index 0000000..e1e95ef --- /dev/null +++ b/recipes-extended/libdbusmenu/libdbusmenu-glib_git.bb @@ -0,0 +1,20 @@ +SUMMARY = "This is a small library designed to make sharing and displaying of menu structures over DBus simple and easy to use." +HOMEPAGE = "https://github.com/AyatanaIndicators/libdbusmenu" +LICENSE = "LGPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6" + +SRC_URI = "git://github.com/AyatanaIndicators/libdbusmenu.git;protocol=https;branch=master" + +DEPENDS = "glib-2.0 json-glib dbus intltool-native" + +S = "${WORKDIR}/git" +PV = "16.0.4" +SRCREV = "4d03141aea4e2ad0f04ab73cf1d4f4bcc4a19f6c" + +EXTRA_OECONF += "--disable-dumper --disable-gtk --disable-gtk-doc" + +CFLAGS += "-Wno-error" + +inherit autotools pkgconfig gettext gobject-introspection vala gtk-doc + +FILES:${PN} += "${datadir}" diff --git a/recipes-extended/libdbusmenu/libdbusmenu-gtk_git.bb b/recipes-extended/libdbusmenu/libdbusmenu-gtk_git.bb new file mode 100644 index 0000000..bdf7d61 --- /dev/null +++ b/recipes-extended/libdbusmenu/libdbusmenu-gtk_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "This is a small library designed to make sharing and displaying of menu structures over DBus simple and easy to use." +HOMEPAGE = "https://github.com/AyatanaIndicators/libdbusmenu" +LICENSE = "LGPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=6a6a8e020838b23406c81b19c1d46df6" + +DEPENDS = "glib-2.0 json-glib dbus gtk+3 libdbusmenu-glib intltool-native" +RDEPENDS:${PN} = "libdbusmenu-glib" + +SRC_URI = "git://github.com/AyatanaIndicators/libdbusmenu.git;protocol=https;branch=master" +S = "${WORKDIR}/git" +PV = "16.0.4" +SRCREV = "4d03141aea4e2ad0f04ab73cf1d4f4bcc4a19f6c" + +EXTRA_OECONF += "--disable-dumper --disable-gtk-doc" + +inherit autotools pkgconfig gettext gobject-introspection vala gtk-doc + +CFLAGS += "-Wno-error" + +do_install:append () { + rm -rf ${D}${includedir}/libdbusmenu-glib-0.4 + rm -rf ${D}${libdir}/girepository-1.0/Dbusmenu-0.4.typelib + rm -rf ${D}${libdir}/libdbusmenu-glib* ${D}${libdir}/libdbusmenu-jsonloader* ${D}${libdir}/pkgconfig/dbusmenu-glib-0.4.pc ${D}${libdir}/pkgconfig/dbusmenu-jsonloader-0.4.pc + rm -rf ${D}${libexecdir}/dbusmenu-testapp + rm -rf ${D}${datadir}/doc + rm -rf ${D}${datadir}/vala/vapi/Dbusmenu-0.4.vapi + rm -rf ${D}${datadir}/gir-1.0/Dbusmenu-0.4.gir + rm -rf ${D}${datadir}/libdbusmenu/json +} + +FILES:${PN} += "${datadir}"