summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 905620b6992254ee2e6d3fc6bd0966d88467ee50 (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
# Maintainer: Riccardo Berto <riccardobrt at gmail dot com>

_pkgname=redis-graph
pkgname=redis-graph-git
pkgver=r371.338de6dd
pkgrel=1
pkgdesc="This project is a Redis module that implements a graph database."
arch=('i686' 'x86_64' 'aarch64' 'armv7h')
url="https://github.com/RedisLabsModules/$_pkgname"
license=('AGPL-3.0')
depends=('redis' 'cmake')
makedepends=('git')
conflicts=('redis-graph')
source=("git+$url")
install=$pkgname.install
sha256sums=("SKIP")

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd $_pkgname/
	make $MAKEFLAGS
}

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