summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a111d74edbab886e2a393ffb5cf1dbf2a09eb260 (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: Floréal TOUMIKIAN <floreal at nimukaito.net>
pkgname=redis-rejson
_pkgname=RedisJSON
pkgver=2.6.4
pkgrel=1
pkgdesc="Redis module that implements ECMA-404 The JSON Data Interchange Standard as a native data type."
arch=('x86_64')
url="https://github.com/RedisLabsModules/rejson"
license=('custom:REDIS SOURCE AVAILABLE LICENSE AGREEMENT')
depends=('redis')
makedepends=("clang")
source=("$url/archive/v$pkgver.tar.gz")
sha512sums=('bf88b8fd1e23b2e1e233fc2e7cd200e07066d1da370826e9a35d17e45e88e79b37783c4a21c0df7a2cee99403833c19475869320ffc87cfe6f70786609aed65e')

prepare() {
	cd "$_pkgname-$pkgver"
        mv LICENSE.txt LICENSE
}

build() {
	cd "$_pkgname-$pkgver"
	cargo build --release
}

package() {
	cd "$_pkgname-$pkgver"
	install -D target/release/deps/librejson.so $pkgdir/usr/lib/redis/rejson.so
	install -Dm644 LICENSE $pkgdir/usr/share/licenses/rejson/LICENSE
}