[arch-commits] Commit in opensearch-dashboards-reports-plugin/repos (2 files)

Justin Kromlinger hashworks at gemini.archlinux.org
Fri Dec 31 15:38:20 UTC 2021


    Date: Friday, December 31, 2021 @ 15:38:19
  Author: hashworks
Revision: 1090393

archrelease: copy trunk to community-x86_64

Added:
  opensearch-dashboards-reports-plugin/repos/community-x86_64/
  opensearch-dashboards-reports-plugin/repos/community-x86_64/PKGBUILD
    (from rev 1090392, opensearch-dashboards-reports-plugin/trunk/PKGBUILD)

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Copied: opensearch-dashboards-reports-plugin/repos/community-x86_64/PKGBUILD (from rev 1090392, opensearch-dashboards-reports-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-12-31 15:38:19 UTC (rev 1090393)
@@ -0,0 +1,54 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname='opensearch-dashboards-reports-plugin'
+_pluginname='dashboards-reports'
+pkgver=1.2.2.0
+_dashboardsver=1.2.0
+pkgrel=1
+pkgdesc='OpenSearch Dashboards Reports Plugin'
+url='https://opensearch.org/docs/latest/dashboards/reporting'
+arch=('x86_64')
+license=('Apache')
+depends=('opensearch-dashboards' 'coffeescript')
+makedepends=('yarn' 'python' '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'
+)
+
+prepare() {
+  nodeVersion="$(node -v)"
+  # Yes, you support this version. You just don't know it yet.
+  sed -i "s/    \"node\": \"[0-9\.]*\",/    \"node\": \"${nodeVersion:1}\",/" "OpenSearch-Dashboards/package.json"
+}
+
+build() {
+  mv "${_pluginname}/${_pluginname}" "OpenSearch-Dashboards/plugins/${_pluginname}"
+  cd "OpenSearch-Dashboards/plugins/${_pluginname}"
+  yarn osd bootstrap
+  yarn build --skip-archive
+}
+
+# TODO: Fix tests. Seem to include integration tests.
+#check() {
+#  cd "OpenSearch-Dashboards/plugins/${_pluginname}"
+#  yarn test
+#}
+
+package() {
+  cd "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}"
+
+  install -Dm644 "${srcdir}/dashboards-reports/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/"
+
+  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:



More information about the arch-commits mailing list