mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
cups-pk-helper: add recipe
cups-pk-helper is a runtime dependency for gnome-control-center or system-config-printer. Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
b79af02110
commit
05ef2b6570
|
|
@ -0,0 +1,24 @@
|
|||
--- a/src/meson.build 2023-01-24 09:22:59.874074134 +0100
|
||||
+++ b/src/meson.build 2023-01-24 09:27:00.494627305 +0100
|
||||
@@ -73,12 +73,12 @@
|
||||
|
||||
|
||||
# Translate and install policy file
|
||||
-i18n.merge_file (
|
||||
- input: 'org.opensuse.cupspkhelper.mechanism.policy.in',
|
||||
- output: 'org.opensuse.cupspkhelper.mechanism.policy',
|
||||
- type: 'xml',
|
||||
- data_dirs: join_paths (meson.source_root (), 'src'),
|
||||
- po_dir: join_paths (meson.source_root (), 'po'),
|
||||
- install: true,
|
||||
- install_dir: join_paths (prefix, datadir, 'polkit-1', 'actions')
|
||||
-)
|
||||
+#i18n.merge_file (
|
||||
+# input: 'org.opensuse.cupspkhelper.mechanism.policy.in',
|
||||
+# output: 'org.opensuse.cupspkhelper.mechanism.policy',
|
||||
+# type: 'xml',
|
||||
+# data_dirs: join_paths (meson.source_root (), 'src'),
|
||||
+# po_dir: join_paths (meson.source_root (), 'po'),
|
||||
+# install: true,
|
||||
+# install_dir: join_paths (prefix, datadir, 'polkit-1', 'actions')
|
||||
+#)
|
||||
23
meta-oe/recipes-printing/cups/cups-pk-helper_0.2.7.bb
Normal file
23
meta-oe/recipes-printing/cups/cups-pk-helper_0.2.7.bb
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
DESCRIPTION = "CUPS polkit helper"
|
||||
HOMEPAGE = "https://www.freedesktop.org/software/cups-pk-helper/releases/"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
DEPENDS = "cups polkit glib-2.0"
|
||||
|
||||
inherit meson pkgconfig gettext features_check
|
||||
|
||||
REQUIRED_DISTRO_FEATURES ="polkit"
|
||||
|
||||
SRC_URI = " \
|
||||
https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${PV}.tar.xz \
|
||||
file://dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "66070ddb448fe9fcee76aa26be2ede5a80f85563e3a4afd59d2bfd79fbe2e831"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${datadir}/polkit-1/actions
|
||||
install -m 644 ${S}/src/org.opensuse.cupspkhelper.mechanism.policy.in ${D}${datadir}/polkit-1/actions/org.opensuse.cupspkhelper.mechanism.policy
|
||||
}
|
||||
|
||||
FILES:${PN} += "${datadir}"
|
||||
Loading…
Reference in New Issue
Block a user