jquery_3.7.1.bb 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. SUMMARY = "jQuery is a fast, small, and feature-rich JavaScript library"
  2. HOMEPAGE = "https://jquery.com/"
  3. DESCRIPTION = "${SUMMARY}"
  4. LICENSE = "MIT"
  5. SECTION = "devel"
  6. LIC_FILES_CHKSUM = "file://${S}/${BP}.js;beginline=5;endline=7;md5=9c7c6e9ab275fc1e0d99cb7180ecd14c"
  7. # unpack items to ${S} so the archiver can see them
  8. #
  9. SRC_URI = "\
  10. https://code.jquery.com/${BP}.js;name=js;subdir=${BP} \
  11. https://code.jquery.com/${BP}.min.js;name=min;subdir=${BP} \
  12. https://code.jquery.com/${BP}.min.map;name=map;subdir=${BP} \
  13. "
  14. SRC_URI[js.sha256sum] = "78a85aca2f0b110c29e0d2b137e09f0a1fb7a8e554b499f740d6744dc8962cfe"
  15. SRC_URI[min.sha256sum] = "fc9a93dd241f6b045cbff0481cf4e1901becd0e12fb45166a8f17f95823f0b1a"
  16. SRC_URI[map.sha256sum] = "5e7d6d9c28b7f21006535e8875eb47e9667852a14c4624eed301c6cea19ae62b"
  17. UPSTREAM_CHECK_REGEX = "jquery-(?P<pver>\d+(\.\d+)+)\.js"
  18. # https://github.com/jquery/jquery/issues/3927
  19. CVE_STATUS[CVE-2007-2379] = "upstream-wontfix: There are ways jquery can expose security issues but any issues \
  20. are in the apps exposing them and there is little we can directly do."
  21. inherit allarch
  22. do_install() {
  23. install -d ${D}${datadir}/javascript/${BPN}/
  24. install -m 644 ${S}/${BP}.js ${D}${datadir}/javascript/${BPN}/${BPN}.js
  25. install -m 644 ${S}/${BP}.min.js ${D}${datadir}/javascript/${BPN}/${BPN}.min.js
  26. install -m 644 ${S}/${BP}.min.map ${D}${datadir}/javascript/${BPN}/${BPN}.min.map
  27. }
  28. PACKAGES = "${PN}"
  29. FILES:${PN} = "${datadir}"
  30. BBCLASSEXTEND += "native nativesdk"