2019-02-14 21:09:19 +01:00
|
|
|
# Template file for 'rocksdb'
|
|
|
|
pkgname=rocksdb
|
2019-02-20 08:49:19 +01:00
|
|
|
version=5.18.3
|
2019-02-14 21:09:19 +01:00
|
|
|
revision=1
|
|
|
|
build_style=cmake
|
|
|
|
configure_args="-DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DWITH_TESTS=0
|
|
|
|
-DUSE_RTTI=0 -DWITH_LZ4=1"
|
|
|
|
makedepends="liblz4-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"
|
|
|
|
homepage="https://github.com/facebook/rocksdb"
|
|
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
2019-02-20 08:49:19 +01:00
|
|
|
checksum=7fb6738263d3f2b360d7468cf2ebe333f3109f3ba1ff80115abd145d75287254
|
2019-02-14 21:09:19 +01:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
armv[56]*-musl) broken="Requires libatomic workaround" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
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/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
|
|
|
}
|