40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'rocksdb'
|
|
pkgname=rocksdb
|
|
version=7.9.2
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DPORTABLE=1 -DWITH_TESTS=0 -DUSE_RTTI=0 -DWITH_LZ4=1
|
|
-DWITH_ZLIB=1 -DWITH_BZ2=1 -DWITH_SNAPPY=1 -DWITH_ZSTD=1"
|
|
makedepends="liblz4-devel gflags-devel snappy-devel libzstd-devel bzip2-devel zlib-devel"
|
|
short_desc="RocksDB is a embeddable, persistent key-value store for fast storage"
|
|
maintainer="magenbluten <mb0@codemonkey.cc>"
|
|
license="GPL-2.0-or-later, Apache-2.0, BSD-3-Clause"
|
|
homepage="https://github.com/facebook/rocksdb"
|
|
distfiles="https://github.com/facebook/rocksdb/archive/v${version}.tar.gz"
|
|
checksum=886378093098a1b2521b824782db7f7dd86224c232cf9652fcaf88222420b292
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
|
|
broken="assembler errors"
|
|
fi
|
|
|
|
post_install() {
|
|
vcopy "include/rocksdb/*" usr/include/rocksdb
|
|
vlicense LICENSE.leveldb
|
|
}
|
|
|
|
rocksdb-devel_package() {
|
|
depends="rocksdb>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|