summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53ed53dfcbd9e70b3a8a51205837a47198bc7513 (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: Silvan Gümüsdere <silvan@trollbox.org>
# Contributor: Riccardo Berto <riccardobrt at gmail dot com>

pkgname=redis-graph
_name=RedisGraph
pkgver=2.10.11
pkgrel=1
pkgdesc="A graph database as a Redis module"
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url="https://redis.io/docs/stack/graph/"
license=("custom:SSPL1")
makedepends=('git' 'cmake' 'peg')
depends=('redis')
conflicts=('redis-graph-git')
_tag=220683c4f3a0064d870b76d9dba58f81b814ef83 # git rev-parse v${pkgver}
source=(git+https://github.com/${_name}/${_name}.git)
sha256sums=('SKIP')

prepare() {
    cd ${_name}
    git checkout ${_tag}
    git submodule update --init --recursive
}

build() {
    cd ${_name}
    make $MAKEFLAGS
}

package() {
    cd ${_name}
    install -D src/redisgraph.so ${pkgdir}/usr/lib/redis/redisgraph.so
    install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
}