libgrpc: Try to fix building under docker image
[termux-packages] / packages / libprotobuf / build.sh
CommitLineData
2ff9e767
FF
1TERMUX_PKG_HOMEPAGE=https://github.com/google/protobuf
2TERMUX_PKG_DESCRIPTION="Protocol buffers C++ library"
275715a8 3TERMUX_PKG_VERSION=3.3.2
c595881b 4TERMUX_PKG_SRCURL=https://github.com/google/protobuf/archive/v${TERMUX_PKG_VERSION}.tar.gz
275715a8 5TERMUX_PKG_SHA256=8b8e442becbeff637f160c1ef4a3a56769c50ba7c9ff939ccc94086530ff00e4
2ff9e767
FF
6TERMUX_PKG_FOLDERNAME=protobuf-$TERMUX_PKG_VERSION
7TERMUX_PKG_HOSTBUILD=yes
8TERMUX_PKG_BUILD_IN_SRC=yes
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-protoc=$TERMUX_PKG_HOSTBUILD_DIR/src/protoc"
c595881b 10# We extracted libprotobuf from protobuf earlier:
2ff9e767 11TERMUX_PKG_CONFLICTS="protobuf (<= 3.0.0)"
c595881b 12
275715a8
FF
13termux_step_host_build() {
14 "$TERMUX_PKG_SRCDIR/configure" --prefix=$TERMUX_PKG_HOSTBUILD_DIR/install
15 # We install protobuf so that libgrpc can use it in a hackish way:
16 make -j $TERMUX_MAKE_PROCESSES install
17}
18
c595881b
FF
19termux_step_post_extract_package () {
20 ./autogen.sh
21}