Date: Thursday, December 15, 2022 @ 07:38:48 Author: hashworks Revision: 1359210
archrelease: copy trunk to community-x86_64 Added: opensearch-dashboards-gantt-chart-plugin/repos/community-x86_64/PKGBUILD (from rev 1359209, opensearch-dashboards-gantt-chart-plugin/trunk/PKGBUILD) Deleted: opensearch-dashboards-gantt-chart-plugin/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 101 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 52 insertions(+), 49 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-12-15 07:38:45 UTC (rev 1359209) +++ PKGBUILD 2022-12-15 07:38:48 UTC (rev 1359210) @@ -1,49 +0,0 @@ -# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> - -pkgname='opensearch-dashboards-gantt-chart-plugin' -_pluginname='gantt-chart-dashboards-plugin' -pkgver=2.4.1.0 -_dashboardsver=2.4.1 -pkgrel=1 -pkgdesc='OpenSearch Dashboards Gantt Chart Plugin' -url='https://opensearch.org/docs/latest/dashboards/gantt/' -arch=('x86_64') -license=('Apache') -depends=("opensearch-dashboards=${_dashboardsver}") -makedepends=('yarn' 'python' 'git') -options=('!strip' 'emptydirs') -source=( - "git+https://github.com/opensearch-project/dashboards-visualizations.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 "dashboards-visualizations/gantt-chart" "OpenSearch-Dashboards/plugins/${_pluginname}" - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn osd bootstrap - yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP -} - -check() { - cd "OpenSearch-Dashboards/plugins/${_pluginname}" - yarn test -} - -package() { - install -Dm644 "${srcdir}/dashboards-visualizations/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" - - cp -r "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}/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: Copied: opensearch-dashboards-gantt-chart-plugin/repos/community-x86_64/PKGBUILD (from rev 1359209, opensearch-dashboards-gantt-chart-plugin/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-12-15 07:38:48 UTC (rev 1359210) @@ -0,0 +1,52 @@ +# Maintainer: Justin Kromlinger <hashwo...@archlinux.org> + +pkgname='opensearch-dashboards-gantt-chart-plugin' +_pluginname='gantt-chart-dashboards-plugin' +pkgver=2.4.1.0 +_dashboardsver=2.4.1 +pkgrel=2 +pkgdesc='OpenSearch Dashboards Gantt Chart Plugin' +url='https://opensearch.org/docs/latest/dashboards/gantt/' +arch=('x86_64') +license=('Apache') +depends=("opensearch-dashboards=${_dashboardsver}") +makedepends=('yarn' 'python' 'git') +options=('!strip' 'emptydirs') +source=( + "git+https://github.com/opensearch-project/dashboards-visualizations.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" + + # https://github.com/opensearch-project/dashboards-visualizations/issues/146 + sed -i "s/ \"opensearchDashboardsVersion\": \"2.4.0\",/ \"opensearchDashboardsVersion\": \"2.4.1\",/" "dashboards-visualizations/gantt-chart/opensearch_dashboards.json" +} + +build() { + mv "dashboards-visualizations/gantt-chart" "OpenSearch-Dashboards/plugins/${_pluginname}" + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn osd bootstrap + yarn plugin-helpers build --skip-archive # `yarn build` will always create the ZIP +} + +check() { + cd "OpenSearch-Dashboards/plugins/${_pluginname}" + yarn test +} + +package() { + install -Dm644 "${srcdir}/dashboards-visualizations/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -dm755 "${pkgdir}/usr/share/opensearch-dashboards/plugins/" + + cp -r "${srcdir}/OpenSearch-Dashboards/plugins/${_pluginname}/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: