summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 97865cacd2eb4ec4c363fcf3246a238941c01b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Sergii Fesenko <sergii_f@outlook.com>

pkgname=lucene-grep-git
_pkgname=lucene-grep
pkgver=2021.05.23.1.gfc9c49a
pkgrel=1
pkgdesc="Grep-like utility based on Lucene Monitor compiled with GraalVM native-image"
arch=(i686 x86_64)
url="https://github.com/dainiusjocas/lucene-grep"
license=('APACHE')
conflicts=(lucene-grep)
provides=(lucene-grep)
depends=(zlib)
makedepends=(git make clojure native-image-jdk11-bin)
source=('git+https://github.com/dainiusjocas/lucene-grep.git')
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  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
}

package() {
  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
}