summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdb868afaa883bd252174ca554ccdc8207ccbc17 (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
# Maintainer: Silvan Gümüsdere <silvan@trollbox.org>

pkgname=redis-bloom
_name=RedisBloom
pkgver=2.6.11
pkgrel=1
pkgdesc="Probabilistic Datatypes Module for Redis "
arch=('x86_64')
url="https://redis.io/docs/stack/bloom/"
license=("custom:SSPL1")
makedepends=('git' 'cmake')
depends=('redis')
_tag=f609223d508fbb5c8185eaa915a699719f294f58 # git rev-parse v${pkgver}
source=(git+https://github.com/${_name}/${_name}.git#commit=${_tag})
sha256sums=('SKIP')

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

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

package() {
    cd ${_name}
    install -D bin/linux-x64-release/redisbloom.so ${pkgdir}/usr/lib/redis/redisbloom.so
    install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
}