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" |
| 5 | LIC_FILES_CHKSUM = "file://${WORKDIR}/${BP}.js;startline=8;endline=10;md5=cdb86f5bda90caec023592d2e768357c" |
| 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 | |
| 13 | SRC_URI[js.sha256sum] = "5a93a88493aa32aab228bf4571c01207d3b42b0002409a454d404b4d8395bd55" |
| 14 | SRC_URI[min.sha256sum] = "0925e8ad7bd971391a8b1e98be8e87a6971919eb5b60c196485941c3c1df089a" |
| 15 | SRC_URI[map.sha256sum] = "8da74aec0fcdd7678a2663b3cc9bafbaf009e6d6929b28bb3dd95bced18206f6" |
| 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" |