blob: 62f0dfb0c5b0fa2e93bd4a0086c85424d9487d90 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "jQuery is a fast, small, and feature-rich JavaScript library"
2HOMEPAGE = "https://jquery.com/"
3LICENSE = "MIT"
4SECTION = "devel"
Andrew Geissler475cb722020-07-10 16:00:51 -05005LIC_FILES_CHKSUM = "file://${S}/${BP}.js;beginline=8;endline=10;md5=ebd7bc5d23ab165188e526a0c65d24bb"
Andrew Geissler82c905d2020-04-13 13:39:40 -05006
Andrew Geissler475cb722020-07-10 16:00:51 -05007# unpack items to ${S} so the archiver can see them
8#
Andrew Geissler82c905d2020-04-13 13:39:40 -05009SRC_URI = "\
Andrew Geissler475cb722020-07-10 16:00:51 -050010 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} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050013 "
14
Andrew Geissler4ed12e12020-06-05 18:00:41 -050015SRC_URI[js.sha256sum] = "416a3b2c3bf16d64f6b5b6d0f7b079df2267614dd6847fc2f3271b4409233c37"
16SRC_URI[min.sha256sum] = "f7f6a5894f1d19ddad6fa392b2ece2c5e578cbf7da4ea805b6885eb6985b6e3d"
17SRC_URI[map.sha256sum] = "511d6f6d3e7acec78cd2505f04282b6e01329b4c24931f39d91739d0d1ddeef8"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
19UPSTREAM_CHECK_REGEX = "jquery-(?P<pver>\d+(\.\d+)+)\.js"
20
21inherit allarch
22
23do_install() {
24 install -d ${D}${datadir}/javascript/${BPN}/
Andrew Geissler475cb722020-07-10 16:00:51 -050025 install -m 644 ${S}/${BP}.js ${D}${datadir}/javascript/${BPN}/${BPN}.js
26 install -m 644 ${S}/${BP}.min.js ${D}${datadir}/javascript/${BPN}/${BPN}.min.js
27 install -m 644 ${S}/${BP}.min.map ${D}${datadir}/javascript/${BPN}/${BPN}.min.map
Andrew Geissler82c905d2020-04-13 13:39:40 -050028}
29
30PACKAGES = "${PN}"
31FILES_${PN} = "${datadir}"
32
33BBCLASSEXTEND += "native nativesdk"