Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright OpenEmbedded Contributors |
| 3 | # |
| 4 | # SPDX-License-Identifier: MIT |
| 5 | # |
| 6 | |
| 7 | def gnome_verdir(v): |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 8 | return ".".join(v.split(".")[:-1]) or v |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 9 | |
| 10 | |
| 11 | GNOME_COMPRESS_TYPE ?= "xz" |
| 12 | SECTION ?= "x11/gnome" |
| 13 | GNOMEBN ?= "${BPN}" |
| 14 | SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive" |
| 15 | |
| 16 | FILES:${PN} += "${datadir}/application-registry \ |
| 17 | ${datadir}/mime-info \ |
| 18 | ${datadir}/mime/packages \ |
| 19 | ${datadir}/mime/application \ |
| 20 | ${datadir}/gnome-2.0 \ |
| 21 | ${datadir}/polkit* \ |
| 22 | ${datadir}/GConf \ |
| 23 | ${datadir}/glib-2.0/schemas \ |
| 24 | ${datadir}/appdata \ |
| 25 | ${datadir}/icons \ |
| 26 | " |
| 27 | |
| 28 | FILES:${PN}-doc += "${datadir}/devhelp" |
| 29 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame^] | 30 | GNOMEBASEBUILDCLASS ??= "meson" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 31 | inherit ${GNOMEBASEBUILDCLASS} pkgconfig |
| 32 | |
| 33 | do_install:append() { |
| 34 | rm -rf ${D}${localstatedir}/lib/scrollkeeper/* |
| 35 | rm -rf ${D}${localstatedir}/scrollkeeper/* |
| 36 | rm -f ${D}${datadir}/applications/*.cache |
| 37 | } |