summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db856aac265c560c0ee4b275797d4a07773cb7f3 (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
# Maintainer: Sergii Fesenko <sergii_f@outlook.com>

pkgname=lucene-grep-git
_pkgname=lucene-grep
pkgver=v2021.04.26.r6.a00056d
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)
depends=('zlib')
makedepends=('git' 'make' 'clojure')
source=('git+https://github.com/dainiusjocas/lucene-grep.git')
md5sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --tags --long | sed 's/-/.r/; s/-g/./'
}

build() {
  cd "$srcdir/$_pkgname"
  make
}

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
}