blob: 5e72f549a380bf96c0fd75eb51888e5a37b0423e [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
2# Copyright OpenEmbedded Contributors
3#
4# SPDX-License-Identifier: MIT
5#
6
7def gnome_verdir(v):
Patrick Williams7784c422022-11-17 07:29:11 -06008 return ".".join(v.split(".")[:-1]) or v
Patrick Williams92b42cb2022-09-03 06:53:57 -05009
10
11GNOME_COMPRESS_TYPE ?= "xz"
12SECTION ?= "x11/gnome"
13GNOMEBN ?= "${BPN}"
14SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive"
15
16FILES:${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
28FILES:${PN}-doc += "${datadir}/devhelp"
29
30GNOMEBASEBUILDCLASS ??= "autotools"
31inherit ${GNOMEBASEBUILDCLASS} pkgconfig
32
33do_install:append() {
34 rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
35 rm -rf ${D}${localstatedir}/scrollkeeper/*
36 rm -f ${D}${datadir}/applications/*.cache
37}