summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-printing/cups/cups-pk-helper/dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch24
-rw-r--r--meta-oe/recipes-printing/cups/cups-pk-helper_0.2.7.bb23
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-printing/cups/cups-pk-helper/dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch b/meta-oe/recipes-printing/cups/cups-pk-helper/dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch
new file mode 100644
index 0000000000..86c09c9f84
--- /dev/null
+++ b/meta-oe/recipes-printing/cups/cups-pk-helper/dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch
@@ -0,0 +1,24 @@
1--- a/src/meson.build 2023-01-24 09:22:59.874074134 +0100
2+++ b/src/meson.build 2023-01-24 09:27:00.494627305 +0100
3@@ -73,12 +73,12 @@
4
5
6 # Translate and install policy file
7-i18n.merge_file (
8- input: 'org.opensuse.cupspkhelper.mechanism.policy.in',
9- output: 'org.opensuse.cupspkhelper.mechanism.policy',
10- type: 'xml',
11- data_dirs: join_paths (meson.source_root (), 'src'),
12- po_dir: join_paths (meson.source_root (), 'po'),
13- install: true,
14- install_dir: join_paths (prefix, datadir, 'polkit-1', 'actions')
15-)
16+#i18n.merge_file (
17+# input: 'org.opensuse.cupspkhelper.mechanism.policy.in',
18+# output: 'org.opensuse.cupspkhelper.mechanism.policy',
19+# type: 'xml',
20+# data_dirs: join_paths (meson.source_root (), 'src'),
21+# po_dir: join_paths (meson.source_root (), 'po'),
22+# install: true,
23+# install_dir: join_paths (prefix, datadir, 'polkit-1', 'actions')
24+#)
diff --git a/meta-oe/recipes-printing/cups/cups-pk-helper_0.2.7.bb b/meta-oe/recipes-printing/cups/cups-pk-helper_0.2.7.bb
new file mode 100644
index 0000000000..4bf62006f4
--- /dev/null
+++ b/meta-oe/recipes-printing/cups/cups-pk-helper_0.2.7.bb
@@ -0,0 +1,23 @@
1DESCRIPTION = "CUPS polkit helper"
2HOMEPAGE = "https://www.freedesktop.org/software/cups-pk-helper/releases/"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
6DEPENDS = "cups polkit glib-2.0"
7
8inherit meson pkgconfig gettext features_check
9
10REQUIRED_DISTRO_FEATURES ="polkit"
11
12SRC_URI = " \
13 https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${PV}.tar.xz \
14 file://dont-localize-org.opensuse.CupsPkHelper.Mechanism.service.patch \
15"
16SRC_URI[sha256sum] = "66070ddb448fe9fcee76aa26be2ede5a80f85563e3a4afd59d2bfd79fbe2e831"
17
18do_install:append() {
19 install -d ${D}${datadir}/polkit-1/actions
20 install -m 644 ${S}/src/org.opensuse.cupspkhelper.mechanism.policy.in ${D}${datadir}/polkit-1/actions/org.opensuse.cupspkhelper.mechanism.policy
21}
22
23FILES:${PN} += "${datadir}"