Date: Thursday, September 1, 2022 @ 10:35:57 Author: hashworks Revision: 1290109
Initial commit Added: opensearch-notifications-plugin/ opensearch-notifications-plugin/repos/ opensearch-notifications-plugin/trunk/ opensearch-notifications-plugin/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Added: opensearch-notifications-plugin/trunk/PKGBUILD =================================================================== --- opensearch-notifications-plugin/trunk/PKGBUILD (rev 0) +++ opensearch-notifications-plugin/trunk/PKGBUILD 2022-09-01 10:35:57 UTC (rev 1290109) @@ -0,0 +1,40 @@ +# Maintainer: Justin Kronotificationsinger <[email protected]> + +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/build/distributions/opensearch-notifications-${pkgver}.zip" + + install -Dm644 "${srcdir}/notifications-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}
