summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 802a89e72eae55bd9f6c95bda8a107b8036f044c (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
# Maintainer: Jonian Guveli <https://github.com/jonian/>
pkgname=redi-search
pkgver=2.0.6
pkgrel=1
pkgdesc="Redis module that implements a search engine on top of Redis."
arch=("x86_64")
url="https://github.com/RediSearch/RediSearch"
license=("Custom")
depends=("redis")
makedepends=("git" "cmake")
source=("$pkgname-$pkgver::git+$url")
md5sums=("SKIP")

prepare() {
  cd "$pkgname-$pkgver"
  git checkout tags/v$pkgver
  git submodule update --init
}

build() {
  cd "$pkgname-$pkgver"
  make
}

package() {
  cd "$pkgname-$pkgver"
  install -D build/redisearch.so $pkgdir/usr/lib/redis/redisearch.so
  install -Dm644 LICENSE $pkgdir/usr/share/licenses/redisearch/LICENSE
}