mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
leveldb: update to 1.21.
This commit is contained in:
parent
776ceab8c0
commit
5e114c2ab9
2 changed files with 26 additions and 29 deletions
14
srcpkgs/leveldb/patches/fix-cmake.patch
Normal file
14
srcpkgs/leveldb/patches/fix-cmake.patch
Normal 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"
|
||||||
|
|
|
@ -1,35 +1,18 @@
|
||||||
# Template file for 'leveldb'
|
# Template file for 'leveldb'
|
||||||
pkgname=leveldb
|
pkgname=leveldb
|
||||||
version=1.20
|
version=1.21
|
||||||
revision=2
|
revision=1
|
||||||
short_desc="A fast and lightweight key/value database library by Google"
|
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>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="BSD"
|
license="BSD-3-Clause"
|
||||||
homepage="https://github.com/google/leveldb"
|
homepage="https://github.com/google/leveldb"
|
||||||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
checksum=f5abe8b5b209c2f36560b75f32ce61412f39a2922f7045ae764a2c23335b6664
|
checksum=e0fbd238047b9e82ec26a2b808f826b60e12b4fcb5d1a18c7b3d6edf357b4026
|
||||||
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}
|
|
||||||
|
|
||||||
|
post_install() {
|
||||||
# license
|
# license
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
@ -39,7 +22,7 @@ leveldb-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/share/doc
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/lib/*.so
|
vmove usr/lib/cmake
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue