diff options
author | Sergii Fesenko | 2022-08-09 10:21:08 +0300 |
---|---|---|
committer | Sergii Fesenko | 2022-08-09 10:21:08 +0300 |
commit | ccaeb3cb71e26891f897c413b3cb0e8fc35f37bd (patch) | |
tree | d4359bc5cadb11b7d8c7f16053e26038a3c4896a /PKGBUILD | |
parent | 210fd169c8ed4958a17138f1b2d949a1e982a232 (diff) | |
download | aur-lucene-grep-git.tar.gz |
Use jdk17 graalvm
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,8 +1,7 @@ # Maintainer: Sergii Fesenko <sergii_f@outlook.com> pkgname=lucene-grep-git -_pkgname=lucene-grep -pkgver=2021.05.23.1.gfc9c49a +pkgver=2022.07.27.3.g944f12f pkgrel=1 pkgdesc="Grep-like utility based on Lucene Monitor compiled with GraalVM native-image" arch=(i686 x86_64) @@ -11,26 +10,32 @@ license=('APACHE') conflicts=(lucene-grep) provides=(lucene-grep) depends=(zlib) -makedepends=(git make clojure native-image-jdk11-bin) +makedepends=( + git + make + clojure + jdk17-graalvm-bin + native-image-jdk17-bin) source=('git+https://github.com/dainiusjocas/lucene-grep.git') md5sums=('SKIP') pkgver() { - cd "${_pkgname}" + cd "${pkgname%-git}" git describe --tags --long | sed 's/-/./g; s/-g/./; s/^v//' } build() { - cd "$srcdir/$_pkgname" - GRAALVM_HOME=/usr/lib/jvm/java-11-graalvm make build + cd "${pkgname%-git}" + GRAALVM_HOME=/usr/lib/jvm/java-17-graalvm \ + make build } package() { + cd "${pkgname%-git}" + mkdir -p $pkgdir/usr/bin mkdir -p $pkgdir/usr/share/licenses/$pkgname/ - cd $srcdir/$_pkgname cp LICENSE $pkgdir/usr/share/licenses/$pkgname/ install -D lmgrep "$pkgdir"/usr/bin/lmgrep } - |