[arch-commits] Commit in opensearch-security-plugin/repos (2 files)
Justin Kromlinger
hashworks at gemini.archlinux.org
Fri Mar 25 23:59:28 UTC 2022
Date: Friday, March 25, 2022 @ 23:59:28
Author: hashworks
Revision: 1176774
archrelease: copy trunk to community-x86_64
Added:
opensearch-security-plugin/repos/community-x86_64/
opensearch-security-plugin/repos/community-x86_64/PKGBUILD
(from rev 1176773, opensearch-security-plugin/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: opensearch-security-plugin/repos/community-x86_64/PKGBUILD (from rev 1176773, opensearch-security-plugin/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-03-25 23:59:28 UTC (rev 1176774)
@@ -0,0 +1,34 @@
+# Maintainer: Justin Kromlinger <hashworks at archlinux.org>
+
+pkgname=opensearch-security-plugin
+pkgver=1.3.0.0
+pkgrel=1
+_opensearchver=1.3.0
+_jdkver=11
+pkgdesc="OpenSearch Security Plugin"
+arch=('x86_64')
+url="https://opensearch.org/docs/latest/security-plugin"
+license=('Apache')
+depends=("opensearch=${_opensearchver}")
+makedepends=("java-environment=${_jdkver}" 'unzip' 'git')
+source=("git+https://github.com/opensearch-project/security.git#tag=${pkgver}") # Build requires git
+sha256sums=('SKIP')
+
+build() {
+ cd "security"
+ 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}"
+
+ # Currently the tests don't provide a way to skip the integration tests
+ # … so we skip them entirely for now
+ ./gradlew assemble
+}
+
+package() {
+ install -dm755 "${pkgdir}/usr/share/opensearch/plugins/opensearch-security"
+ cd "${pkgdir}/usr/share/opensearch/plugins/opensearch-security"
+ unzip "${srcdir}/security/build/distributions/opensearch-security-${pkgver}.zip"
+
+ install -Dm644 "${srcdir}/security/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
More information about the arch-commits
mailing list