blob: a61dd5018f4c752b2ede419435fcfdf532d1ebbe [file] [log] [blame]
Andrew Geissler78b72792022-06-14 06:47:25 -05001DESCRIPTION = "OE helper for manipulating npm cache"
2LICENSE = "Apache-2.0"
3LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
4
5SRC_URI = "\
6 file://oe-npm-cache \
7"
8
9inherit native
10
11B = "${WORKDIR}/build"
12
13do_configure() {
14 sed -e 's!@@libdir@@!${libdir}!g' < '${WORKDIR}/oe-npm-cache' > '${B}/oe-npm-cache'
15}
16
17do_install() {
18 install -D -p -m 0755 ${B}/oe-npm-cache ${D}${bindir}/oe-npm-cache
19}
20
21RDEPENDS:${PN} = "nodejs-native"