leveldb: update to 1.21.

This commit is contained in:
maxice8 2019-03-30 23:21:48 -03:00 committed by maxice8
parent 776ceab8c0
commit 5e114c2ab9
2 changed files with 26 additions and 29 deletions

View file

@ -0,0 +1,14 @@
diff --git CMakeLists.txt CMakeLists.txt
index e471a2a..0837eee 100644
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -95,6 +95,8 @@ if(BUILD_SHARED_LIBS)
endif(BUILD_SHARED_LIBS)
add_library(leveldb "")
+set_target_properties(leveldb PROPERTIES VERSION 1.21.0)
+set_target_properties(leveldb PROPERTIES SOVERSION 1)
target_sources(leveldb
PRIVATE
"${PROJECT_BINARY_DIR}/${LEVELDB_PORT_CONFIG_DIR}/port_config.h"

View file

@ -1,35 +1,18 @@
# Template file for 'leveldb'
pkgname=leveldb
version=1.20
revision=2
short_desc="A fast and lightweight key/value database library by Google"
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"
license="BSD-3-Clause"
homepage="https://github.com/google/leveldb"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=f5abe8b5b209c2f36560b75f32ce61412f39a2922f7045ae764a2c23335b6664
CFLAGS="-I. -I./include"
do_build() {
make ${makejobs} CC="$CC" CXX="$CXX" \
OPT="$CFLAGS" PLATFORM_LIBS="$LDFLAGS"
}
do_install() {
vmkdir usr/lib
vmkdir usr/include/leveldb
vmkdir usr/share/doc/leveldb
# libraries
vinstall out-shared/libleveldb.so.${version} 755 usr/lib
cp -P out-shared/libleveldb.so{,.1} ${DESTDIR}/usr/lib
# headers
install -m644 include/leveldb/* ${DESTDIR}/usr/include/leveldb
# documentation
cp -r doc/* ${DESTDIR}/usr/share/doc/${pkgname}
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=e0fbd238047b9e82ec26a2b808f826b60e12b4fcb5d1a18c7b3d6edf357b4026
post_install() {
# license
vlicense LICENSE
}
@ -39,7 +22,7 @@ leveldb-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share/doc
vmove usr/lib/*.so
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}