termux-packages/packages/libprotobuf/build.sh
2019-07-28 01:52:44 +03:00

17 lines
552 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/google/protobuf
TERMUX_PKG_DESCRIPTION="Protocol buffers C++ library"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_VERSION=3.9.0
TERMUX_PKG_SRCURL=https://github.com/google/protobuf/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=2ee9dcec820352671eb83e081295ba43f7a4157181dad549024d7070d079cf65
TERMUX_PKG_DEPENDS="libc++, zlib"
TERMUX_PKG_FORCE_CMAKE=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dprotobuf_BUILD_TESTS=OFF
-DBUILD_SHARED_LIBS=ON
"
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR+="/cmake/"
}