blob: cfc32952cddf39809650c7f95ae853c393aa9e12 [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/"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06003DESCRIPTION = "${SUMMARY}"
Andrew Geissler82c905d2020-04-13 13:39:40 -05004LICENSE = "MIT"
5SECTION = "devel"
Andrew Geissler475cb722020-07-10 16:00:51 -05006LIC_FILES_CHKSUM = "file://${S}/${BP}.js;beginline=8;endline=10;md5=ebd7bc5d23ab165188e526a0c65d24bb"
Andrew Geissler82c905d2020-04-13 13:39:40 -05007
Andrew Geissler475cb722020-07-10 16:00:51 -05008# unpack items to ${S} so the archiver can see them
9#
Andrew Geissler82c905d2020-04-13 13:39:40 -050010SRC_URI = "\
Andrew Geissler475cb722020-07-10 16:00:51 -050011 https://code.jquery.com/${BP}.js;name=js;subdir=${BP} \
12 https://code.jquery.com/${BP}.min.js;name=min;subdir=${BP} \
13 https://code.jquery.com/${BP}.min.map;name=map;subdir=${BP} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050014 "
15
Andrew Geissler4ed12e12020-06-05 18:00:41 -050016SRC_URI[js.sha256sum] = "416a3b2c3bf16d64f6b5b6d0f7b079df2267614dd6847fc2f3271b4409233c37"
17SRC_URI[min.sha256sum] = "f7f6a5894f1d19ddad6fa392b2ece2c5e578cbf7da4ea805b6885eb6985b6e3d"
18SRC_URI[map.sha256sum] = "511d6f6d3e7acec78cd2505f04282b6e01329b4c24931f39d91739d0d1ddeef8"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019
20UPSTREAM_CHECK_REGEX = "jquery-(?P<pver>\d+(\.\d+)+)\.js"
21
22inherit allarch
23
24do_install() {
25 install -d ${D}${datadir}/javascript/${BPN}/
Andrew Geissler475cb722020-07-10 16:00:51 -050026 install -m 644 ${S}/${BP}.js ${D}${datadir}/javascript/${BPN}/${BPN}.js
27 install -m 644 ${S}/${BP}.min.js ${D}${datadir}/javascript/${BPN}/${BPN}.min.js
28 install -m 644 ${S}/${BP}.min.map ${D}${datadir}/javascript/${BPN}/${BPN}.min.map
Andrew Geissler82c905d2020-04-13 13:39:40 -050029}
30
31PACKAGES = "${PN}"
32FILES_${PN} = "${datadir}"
33
34BBCLASSEXTEND += "native nativesdk"