blob: 4bf62006f48a3af591c58f36482e783b9772c791 [file] [log] [blame]
Andrew Geisslerc5535c92023-01-27 16:10:19 -06001DESCRIPTION = "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}"