1SUMMARY = "Shell functions for manipulating network addresses"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
7SRC_URI += "file://lib.sh"
8SRC_URI += "file://test.sh"
9S = "${WORKDIR}"
10
11DATA = "${datadir}/network"
12FILES:${PN} += "${DATA}"
13
14DEPENDS += "test-sh"
15
16do_compile() {
17  SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash test.sh || exit
18}
19
20do_install:append() {
21  install -d -m0755 ${D}${DATA}
22  install -m0644 lib.sh ${D}${DATA}/
23}
24