void-packages/srcpkgs/leveldb/template

28 lines
763 B
Bash

# Template file for 'leveldb'
pkgname=leveldb
version=1.22
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="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/google/leveldb"
distfiles="https://github.com/google/leveldb/archive/${version}.tar.gz"
checksum=55423cac9e3306f4a9502c738a001e4a339d1a38ffbee7572d4a07d5d63949b2
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
}
}