cpp-hocon: build shared library

This commit is contained in:
Michal Vasilek 2022-11-20 13:19:04 +01:00 committed by Đoàn Trần Công Danh
parent c60dbd5448
commit 66c3fdc295
3 changed files with 12 additions and 7 deletions

View File

@ -4205,3 +4205,4 @@ libtraceevent.so.1 libtraceevent-1.6.2_1
libtracefs.so.1 libtracefs-1.4.2_1 libtracefs.so.1 libtracefs-1.4.2_1
libtracecmd.so.1 libtracecmd-3.1.2_1 libtracecmd.so.1 libtracecmd-3.1.2_1
libkshark.so.2 libkshark-2.1.1_1 libkshark.so.2 libkshark-2.1.1_1
libcpp-hocon.so.0.3.0 cpp-hocon-0.3.0_5

1
srcpkgs/cpp-hocon-devel Symbolic link
View File

@ -0,0 +1 @@
cpp-hocon

View File

@ -1,20 +1,23 @@
# Template file for 'cpp-hocon' # Template file for 'cpp-hocon'
pkgname=cpp-hocon pkgname=cpp-hocon
version=0.3.0 version=0.3.0
revision=4 revision=5
build_style=cmake build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends="boost-devel leatherman-devel libcurl-devel" makedepends="boost-devel leatherman-devel libcurl-devel"
short_desc="C++ port of the Typesafe Config library" short_desc="C++ port of the Typesafe Config library"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://github.com/puppetlabs/cpp-hocon/" homepage="https://github.com/puppetlabs/cpp-hocon/"
distfiles="https://github.com/puppetlabs/cpp-hocon/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz" distfiles="https://github.com/puppetlabs/cpp-hocon/archive/${version}.tar.gz"
checksum=dab02354046f05aca6275c746d7583ee5f71853aa5b1d93529564632e184c3dd checksum=dab02354046f05aca6275c746d7583ee5f71853aa5b1d93529564632e184c3dd
post_install() { cpp-hocon-devel_package() {
# this package is a static library, depends="${sourcepkg}>=${version}_${revision}"
# needs to be rebuild when update boost, short_desc+=" - development files"
# force an shlib-dependencies pkg_install() {
vbin build/bin/libcpp-hocon_test vmove usr/include
vmove "usr/lib/*.so"
}
} }