blob: 38ffd032abe06f8a6037243405124fc9d169d45e [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001SUMMARY = "A simple, lightweight JavaScript API for handling cookies."
2HOMEPAGE = "https://github.com/js-cookie/js-cookie"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e16cf0e247d84f8999bf55865a9c98cf"
5
Andrew Geissler3eeda902023-05-19 10:14:02 -05006SRC_URI = "git://github.com/js-cookie/js-cookie.git;protocol=https;branch=main"
Andrew Geisslereff27472021-10-29 15:35:00 -05007
Andrew Geissler3eeda902023-05-19 10:14:02 -05008SRCREV = "ab3f67fc4fad88cdf07b258c08e4164e06bf7506"
Andrew Geisslereff27472021-10-29 15:35:00 -05009
10S = "${WORKDIR}/git"
11
12JQUERYCOOKIEDIR = "${datadir}/javascript/jquery-cookie"
13JQUERYCOOKIEDOCDIR = "${docdir}/libjs-jquery-cookie"
14
15do_install() {
16 install -d ${D}${JQUERYCOOKIEDIR}
17 install -m 0644 ${S}/*.js ${D}${JQUERYCOOKIEDIR}
18 install -m 0644 ${S}/src/*.mjs ${D}${JQUERYCOOKIEDIR}
19 install -m 0644 ${S}/*.json ${D}${JQUERYCOOKIEDIR}
20
21 install -d ${D}${JQUERYCOOKIEDOCDIR}
22 install -m 0644 ${S}/*.md ${D}${JQUERYCOOKIEDOCDIR}
23
24}
25
26FILES:${PN} += "${datadir}/javascript/jquery-cookie"
27FILES:${PN}-doc += "${docdir}/libjs-jquery-cookie"