|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# Template file for 'protobuf26'
|
|
|
|
|
pkgname=protobuf26
|
|
|
|
|
version=3.15.8
|
|
|
|
|
# Template file for 'protobuf28'
|
|
|
|
|
pkgname=protobuf28
|
|
|
|
|
version=3.17.0
|
|
|
|
|
revision=1
|
|
|
|
|
wrksrc="protobuf-${version}"
|
|
|
|
|
build_style=gnu-configure
|
|
|
|
@ -12,10 +12,10 @@ license="BSD-3-Clause"
|
|
|
|
|
homepage="https://developers.google.com/protocol-buffers/"
|
|
|
|
|
changelog="https://raw.githubusercontent.com/google/protobuf/master/CHANGES.txt"
|
|
|
|
|
distfiles="https://github.com/protocolbuffers/protobuf/archive/v${version}.tar.gz"
|
|
|
|
|
checksum=0cbdc9adda01f6d2facc65a22a2be5cecefbefe5a09e5382ee8879b522c04441
|
|
|
|
|
checksum=eaba1dd133ac5167e8b08bc3268b2d33c6e9f2dcb14ec0f97f3d3eed9b395863
|
|
|
|
|
|
|
|
|
|
# Switch to versioned package
|
|
|
|
|
conflicts="protobuf18>=0 protobuf23>=0 protobuf24>=0 protobuf25>=0"
|
|
|
|
|
conflicts="protobuf18>=0 protobuf23>=0 protobuf24>=0 protobuf25>=0 protobuf26>=0"
|
|
|
|
|
replaces="protobuf<=3.11.4_1 ${conflicts}"
|
|
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
@ -42,7 +42,7 @@ post_install() {
|
|
|
|
|
vlicense LICENSE
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
libprotobuf26_package() {
|
|
|
|
|
libprotobuf28_package() {
|
|
|
|
|
short_desc="Protocol buffers C++ library"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove "usr/lib/libprotobuf.so.*"
|
|
|
|
@ -50,7 +50,7 @@ libprotobuf26_package() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
libprotobuf26-lite_package() {
|
|
|
|
|
libprotobuf28-lite_package() {
|
|
|
|
|
short_desc="Protocol buffers C++ library (lite version)"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove "usr/lib/libprotobuf-lite.so.*"
|
|
|
|
@ -58,7 +58,7 @@ libprotobuf26-lite_package() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
libprotoc26_package() {
|
|
|
|
|
libprotoc28_package() {
|
|
|
|
|
short_desc="Protocol buffers compiler library"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove "usr/lib/libprotoc.so.*"
|
|
|
|
@ -66,12 +66,12 @@ libprotoc26_package() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
libprotoc26-devel_package() {
|
|
|
|
|
depends="libprotoc26-${version}_${revision}"
|
|
|
|
|
libprotoc28-devel_package() {
|
|
|
|
|
depends="libprotoc28-${version}_${revision}"
|
|
|
|
|
short_desc="Protocol buffers compiler library - development files"
|
|
|
|
|
# Switch to versioned package
|
|
|
|
|
conflicts="libprotoc18-devel>=0 libprotoc23-devel>=0
|
|
|
|
|
libprotoc24-devel>=0 libprotoc25-devel>=0"
|
|
|
|
|
libprotoc24-devel>=0 libprotoc25-devel>=0 libprotoc26-devel>=0"
|
|
|
|
|
replaces="libprotoc-devel<=3.11.4_1 ${conflicts}"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove usr/lib/libprotoc.a
|
|
|
|
@ -80,14 +80,14 @@ libprotoc26-devel_package() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protobuf26-devel_package() {
|
|
|
|
|
protobuf28-devel_package() {
|
|
|
|
|
depends="zlib-devel
|
|
|
|
|
libprotobuf26-${version}_${revision}
|
|
|
|
|
libprotobuf26-lite-${version}_${revision}"
|
|
|
|
|
libprotobuf28-${version}_${revision}
|
|
|
|
|
libprotobuf28-lite-${version}_${revision}"
|
|
|
|
|
short_desc="Protocol buffers C++ library - development files"
|
|
|
|
|
# Switch to versioned package
|
|
|
|
|
conflicts="protobuf18-devel>=0 protobuf23-devel>=0
|
|
|
|
|
protobuf24-devel>=0 protobuf25-devel>=0"
|
|
|
|
|
protobuf24-devel>=0 protobuf25-devel>=0 protobuf26-devel>=0"
|
|
|
|
|
replaces="protobuf-devel<=3.11.4_1 ${conflicts}"
|
|
|
|
|
pkg_install() {
|
|
|
|
|
vmove usr/include
|
|
|
|
@ -102,23 +102,23 @@ protobuf26-devel_package() {
|
|
|
|
|
protobuf_package() {
|
|
|
|
|
build_style=meta
|
|
|
|
|
short_desc="Protocol buffers compiler (meta package)"
|
|
|
|
|
depends="protobuf26"
|
|
|
|
|
depends="protobuf28"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protobuf-devel_package() {
|
|
|
|
|
build_style=meta
|
|
|
|
|
short_desc="Protocol buffers C++ library - development files (meta package)"
|
|
|
|
|
depends="protobuf26-devel"
|
|
|
|
|
depends="protobuf28-devel"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protobuf-lite_package() {
|
|
|
|
|
build_style=meta
|
|
|
|
|
short_desc="Protocol buffers C++ library - lite version (meta package)"
|
|
|
|
|
depends="libprotobuf26-lite"
|
|
|
|
|
depends="libprotobuf28-lite"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
libprotoc-devel_package() {
|
|
|
|
|
build_style=meta
|
|
|
|
|
short_desc="Protocol buffers compiler library - development files (meta package)"
|
|
|
|
|
depends="libprotoc26-devel"
|
|
|
|
|
depends="libprotoc28-devel"
|
|
|
|
|
}
|