1SUMMARY = "A text-based user interface plugin of dnf for user to manage packages. "
2LICENSE = "GPL-2.0-only"
3
4LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
5
6SRC_URI = "git://github.com/ubinux/dnf-plugin-tui.git;branch=master;protocol=https"
7SRCREV = "7c45fd65dcd811def66161f6d572c3930f2ba4d8"
8PV = "1.3"
9
10SRC_URI:append:class-target = " file://oe-remote.repo.sample"
11
12inherit setuptools3-base
13
14S = "${WORKDIR}/git"
15
16do_install:append() {
17    install -d ${D}${datadir}/dnf
18    install -m 0755 ${S}/samples/* ${D}${datadir}/dnf
19    install -d ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins/mkimg
20    install -m 0755 ${S}/dnf-plugins/mkimg/* ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins/mkimg
21    for file in $(ls ${S}/dnf-plugins/ | grep -v mkimg); do
22        install -m 0755 ${S}/dnf-plugins/$file ${D}${PYTHON_SITEPACKAGES_DIR}/dnf-plugins
23    done
24}
25
26do_install:append:class-target() {
27    install -d ${D}${sysconfdir}/yum.repos.d
28    install -m 0644 ${WORKDIR}/oe-remote.repo.sample ${D}${sysconfdir}/yum.repos.d
29}
30
31FILES:${PN} += "${datadir}/dnf"
32
33RDEPENDS:${PN} += " \
34    bash \
35    dnf \
36    libnewt-python \
37"
38
39BBCLASSEXTEND = "nativesdk"
40SKIP_RECIPE[dnf-plugin-tui] ?= "${@bb.utils.contains('PACKAGE_CLASSES', 'package_rpm', '', 'does not build correctly without package_rpm in PACKAGE_CLASSES', d)}"
41