43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'protobuf'
|
|
pkgname=protobuf
|
|
version=3.3.0
|
|
revision=3
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="zlib-devel"
|
|
short_desc="Google's data interchange format"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
distfiles="https://github.com/google/protobuf/releases/download/v${version}/protobuf-cpp-${version}.tar.gz"
|
|
homepage="https://developers.google.com/protocol-buffers/"
|
|
license="BSD"
|
|
checksum=5e2587dea2f9287885e3b04d3a94ed4e8b9b2d2c5dd1f0032ceef3ea1d153bd7
|
|
|
|
CXXFLAGS="-std=c++14"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# needs host protoc
|
|
hostmakedepends+=" protobuf"
|
|
configure_args+=" --with-protoc=/usr/bin/protoc"
|
|
fi
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
protobuf-devel_package() {
|
|
depends="zlib-devel protobuf>=${version}_${revision} protobuf-lite>=${version}_${revision}"
|
|
short_desc="Google's data interchange format - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
protobuf-lite_package() {
|
|
short_desc="Google's data interchange format - Lite version"
|
|
pkg_install() {
|
|
vmove "usr/lib/libprotobuf-lite.so.*"
|
|
}
|
|
}
|