void-packages/srcpkgs/rocksdb/template

40 lines
1.1 KiB
Bash

# Template file for 'rocksdb'
pkgname=rocksdb
version=7.7.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=85ac702405568be4d3ad485fba81b39a5c3de956224c2583528e00ed77cf07fd
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"
}
}