Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "jQuery is a fast, small, and feature-rich JavaScript library" |
| 2 | HOMEPAGE = "https://jquery.com/" |
| 3 | LICENSE = "MIT" |
| 4 | SECTION = "devel" |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${WORKDIR}/${BP}.js;startline=8;endline=10;md5=b1e67ece919e852643f1541a54492d65" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | |
| 7 | SRC_URI = "\ |
| 8 | https://code.jquery.com/${BP}.js;name=js \ |
| 9 | https://code.jquery.com/${BP}.min.js;name=min \ |
| 10 | https://code.jquery.com/${BP}.min.map;name=map \ |
| 11 | " |
| 12 | |
Andrew Geissler | 4b740dc | 2020-05-05 08:54:39 -0500 | [diff] [blame] | 13 | SRC_URI[js.sha256sum] = "aff01a147aeccc9b70a5efad1f2362fd709f3316296ec460d94aa7d31decdb37" |
| 14 | SRC_URI[min.sha256sum] = "c4dccdd9ae25b64078e0c73f273de94f8894d5c99e4741645ece29aeefc9c5a4" |
| 15 | SRC_URI[map.sha256sum] = "3149351c8cbc3fb230bbf6188617c7ffda77d9e14333f4f5f0aa1aae379df892" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | |
| 17 | UPSTREAM_CHECK_REGEX = "jquery-(?P<pver>\d+(\.\d+)+)\.js" |
| 18 | |
| 19 | inherit allarch |
| 20 | |
| 21 | do_install() { |
| 22 | install -d ${D}${datadir}/javascript/${BPN}/ |
| 23 | install -m 644 ${WORKDIR}/${BP}.js ${D}${datadir}/javascript/${BPN}/${BPN}.js |
| 24 | install -m 644 ${WORKDIR}/${BP}.min.js ${D}${datadir}/javascript/${BPN}/${BPN}.min.js |
| 25 | install -m 644 ${WORKDIR}/${BP}.min.map ${D}${datadir}/javascript/${BPN}/${BPN}.min.map |
| 26 | } |
| 27 | |
| 28 | PACKAGES = "${PN}" |
| 29 | FILES_${PN} = "${datadir}" |
| 30 | |
| 31 | BBCLASSEXTEND += "native nativesdk" |