1SUMMARY = "Catfish is a handy file searching tool for linux and unix"
2SECTION = "x11/application"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
5
6inherit xfce-app python_setuptools_build_meta gtk-icon-cache mime-xdg features_check
7
8REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
9
10DEPENDS += "python3-distutils-extra-native"
11
12SRC_URI[sha256sum] = "fdae9b73cc754a50716bb04b958aa31dbd7e94047068b7207f2ae313a7d58b99"
13
14FILES:${PN} += "${datadir}/metainfo"
15
16RDEPENDS:${PN} += "python3-pygobject python3-dbus"
17
18do_install:append() {
19    #
20    # Until catfish upstream figures out a way to overcome this buildpath issue, we need to do such adjustments here.
21    #
22    sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' ${D}${datadir}/applications/org.xfce.Catfish.desktop
23    sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/catfish_lib/catfishconfig.py
24    rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/catfish_lib/__pycache__/catfishconfig.*.pyc
25}
26