Date: Thursday, September 1, 2022 @ 21:04:37 Author: hashworks Revision: 1290479
archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-maps-plugin/repos/community-x86_64/ opensearch-dashboards-maps-plugin/repos/community-x86_64/PKGBUILD (from rev 1290478, opensearch-dashboards-maps-plugin/trunk/PKGBUILD) ----------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Copied: opensearch-dashboards-maps-plugin/repos/community-x86_64/PKGBUILD (from rev 1290478, opensearch-dashboards-maps-plugin/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2022-09-01 21:04:37 UTC (rev 1290479) @@ -0,0 +1,43 @@ +# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> + +pkgname='opensearch-dashboards-maps-plugin' +_pluginname='dashboards-maps' +pkgver=2.2.1.0 +_dashboardsver=2.2.1 +pkgrel=1 +pkgdesc='OpenSearch Dashboards Maps Plugin' +url='https://opensearch.org/docs/latest/dashboards/geojson-regionmaps/' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/${_pluginname}.git#tag=${pkgver}" + "git+https://github.com/opensearch-project/OpenSearch-Dashboards.git#tag=${_dashboardsver}" +) +sha256sums=('SKIP' + 'SKIP') + +build() { + mv "${_pluginname}/src/plugins/custom_import_map" "OpenSearch-Dashboards/plugins/" + cd "OpenSearch-Dashboards/plugins/custom_import_map" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/custom_import_map" + yarn test:jest -u +} + +package() { + install -Dm644 "${_pluginname}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" + + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + cd "${srcdir}/OpenSearch-Dashboards/plugins/custom_import_map" + cp -r "build/opensearch-dashboards/"* "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + find "${pkgdir}/usr/share/opensearch-dashboards/plugins" -type d -empty -delete +} + +# vim: ts=2 sw=2 et: