[arch-commits] Commit in opensearch-notifications-plugin/repos (2 files)
Justin Kromlinger
hashworks at gemini.archlinux.org
Thu Sep 1 17:16:16 UTC 2022
Date: Thursday, September 1, 2022 @ 17:16:15
Author: hashworks
Revision: 1290378
archrelease: copy trunk to community-x86_64
Added:
opensearch-notifications-plugin/repos/community-x86_64/
opensearch-notifications-plugin/repos/community-x86_64/PKGBUILD
(from rev 1290377, opensearch-notifications-plugin/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: opensearch-notifications-plugin/repos/community-x86_64/PKGBUILD (from rev 1290377, opensearch-notifications-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-09-01 17:16:15 UTC (rev 1290378)
@@ -0,0 +1,45 @@
+# Maintainer: Justin Kronotificationsinger <hashworks at archlinux.org>
+
+pkgname=opensearch-notifications-plugin
+pkgver=2.1.0.0
+pkgrel=1
+_opensearchver=2.1.0
+_jdkver=11
+pkgdesc="OpenSearch Notifications Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/notifications-plugin/index/"
+license=('Apache')
+depends=("opensearch=${_opensearchver}")
+makedepends=("java-environment=${_jdkver}" 'unzip')
+source=(
+ "${pkgname}-${pkgver}.tar.gz::https://github.com/opensearch-project/notifications/archive/${pkgver}.tar.gz"
+)
+sha256sums=('2997b57eeacf6bf614570830d215e4464176eea4e514a738c117446f434e2858')
+
+build() {
+ cd "notifications-${pkgver}/notifications"
+ export JAVA_HOME="/usr/lib/jvm/java-${_jdkver}-openjdk"
+ export PATH="/usr/lib/jvm/java-${_jdkver}-openjdk/bin:$PATH"
+ export GRADLE_OPTS="-Dbuild.snapshot=false -Dopensearch.version=${_opensearchver}"
+ ./gradlew build \
+ --exclude-task "notifications:jacocoTestCoverageVerification" \
+ --exclude-task "opensearch-notifications-core:jacocoTestCoverageVerification" \
+ --exclude-task "opensearch-notifications-core-spi:jacocoTestCoverageVerification" \
+ --exclude-task "notifications:jacocoTestReport" \
+ --exclude-task "opensearch-notifications-core:jacocoTestReport" \
+ --exclude-task "opensearch-notifications-core-spi:jacocoTestReport"
+# --exclude-task ":notifications:notificationsBwcCluster" # 2.2.0.0
+}
+
+package() {
+ install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-notifications"
+ cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-notifications"
+ unzip "${srcdir}/notifications-${pkgver}/notifications/notifications/build/distributions/opensearch-notifications-${pkgver}.zip"
+
+ install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-notifications-core"
+ cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-notifications-core"
+ unzip "${srcdir}/notifications-${pkgver}/notifications/core/build/distributions/opensearch-notifications-core-${pkgver}.zip"
+
+
+ install -Dm644 "${srcdir}/notifications-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list