# Library to share code needed to install most available bats library # Bats library are shell scripts, so they are arch independant inherit allarch RDEPENDS:${PN} += "bats" # Bats can find library in this folder by default BATS_LIB_PATH ?= "${libdir}/bats" # By default the library will have the same name as the recipe BATS_INSTALL_DIR ?= "${BATS_LIB_PATH}/${PN}" FILES:${PN} += "${BATS_INSTALL_DIR}" do_install() { install -d ${D}${BATS_INSTALL_DIR} cp -r ${S}/src ${D}${BATS_INSTALL_DIR}/ install ${S}/load.bash ${D}${BATS_INSTALL_DIR}/ }