termux-packages/packages/libprotobuf/build.sh
Fredrik Fornwall 3bbf551382 protobuf: Update from 3.3.2 to 3.4.1
Bump and rebuild mosh against new libprotobuf version.
2017-09-16 15:05:03 +02:00

22 lines
858 B
Bash
Executable File

TERMUX_PKG_HOMEPAGE=https://github.com/google/protobuf
TERMUX_PKG_DESCRIPTION="Protocol buffers C++ library"
TERMUX_PKG_VERSION=3.4.1
TERMUX_PKG_SHA256=8e0236242106e680b4f9f576cc44b8cd711e948b20a9fc07769b0a20ceab9cc4
TERMUX_PKG_SRCURL=https://github.com/google/protobuf/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_FOLDERNAME=protobuf-$TERMUX_PKG_VERSION
TERMUX_PKG_HOSTBUILD=yes
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-protoc=$TERMUX_PKG_HOSTBUILD_DIR/src/protoc"
# We extracted libprotobuf from protobuf earlier:
TERMUX_PKG_CONFLICTS="protobuf (<= 3.0.0)"
termux_step_host_build() {
"$TERMUX_PKG_SRCDIR/configure" --prefix=$TERMUX_PKG_HOSTBUILD_DIR/install
# We install protobuf so that libgrpc can use it in a hackish way:
make -j $TERMUX_MAKE_PROCESSES install
}
termux_step_post_extract_package () {
./autogen.sh
}