blob: c4497251d9a7de3c5df1a33126679de0e1b1de11 (
plain)
1 # Description: Embedded key-value store for fast storage
2 # URL: https://rocksdb.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: gflags jemalloc liburing lz4 snappy
5
6 name=rocksdb
7 version=7.8.3
8 release=1
9 source=(https://github.com/facebook/rocksdb/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 [[ -z $CCACHE_PREFIX ]] || unset CCACHE_PREFIX
13 cmake -S $name-$version -B build -G Ninja \
14 -D CMAKE_INSTALL_PREFIX=/usr \
15 -D CMAKE_INSTALL_LIBDIR=lib \
16 -D CMAKE_BUILD_TYPE=Release \
17 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
18 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
19 -D WITH_BZ2=ON \
20 -D WITH_LZ4=ON \
21 -D WITH_SNAPPY=ON \
22 -D WITH_ZLIB=ON \
23 -D WITH_ZSTD=ON \
24 -D USE_RTTI=ON \
25 -D WITH_JEMALLOC=ON \
26 -D FAIL_ON_WARNINGS=OFF \
27 -D PORTABLE=ON \
28 -D WITH_BENCHMARK_TOOLS=OFF \
29 -Wno-dev
30
31 cmake --build build
32 DESTDIR=$PKG cmake --install build
33 }
|