void-packages/srcpkgs/leveldb/template
2019-03-31 00:06:50 -03:00

28 lines
741 B
Bash

# Template file for 'leveldb'
pkgname=leveldb
version=1.21
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON -DLEVELDB_BUILD_TESTS=OFF
-DLEVELDB_BUILD_BENCHMARKS=OFF"
short_desc="Fast and lightweight key/value database library by Google"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/google/leveldb"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=e0fbd238047b9e82ec26a2b808f826b60e12b4fcb5d1a18c7b3d6edf357b4026
post_install() {
# license
vlicense LICENSE
}
leveldb-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}