1 TERMUX_PKG_HOMEPAGE
=https
://github.com
/google
/protobuf
2 TERMUX_PKG_DESCRIPTION
="Protocol buffers C++ library"
3 TERMUX_PKG_VERSION
=3.4.1
4 TERMUX_PKG_SHA256
=8e0236242106e680b4f9f576cc44b8cd711e948b20a9fc07769b0a20ceab9cc4
5 TERMUX_PKG_SRCURL
=https
://github.com
/google
/protobuf
/archive
/v
${TERMUX_PKG_VERSION}.
tar.gz
6 TERMUX_PKG_FOLDERNAME
=protobuf-
$TERMUX_PKG_VERSION
7 TERMUX_PKG_HOSTBUILD
=yes
8 TERMUX_PKG_BUILD_IN_SRC
=yes
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="--with-protoc=$TERMUX_PKG_HOSTBUILD_DIR/src/protoc"
10 # We extracted libprotobuf from protobuf earlier:
11 TERMUX_PKG_CONFLICTS
="protobuf (<= 3.0.0)"
13 termux_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
19 termux_step_post_extract_package
() {