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