termux-packages/packages/libprotobuf/build.sh

18 lines
574 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://github.com/google/protobuf
TERMUX_PKG_DESCRIPTION="Protocol buffers C++ library"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="BSD 3-Clause"
2019-05-12 00:08:10 +02:00
TERMUX_PKG_VERSION=3.7.1
2019-06-19 23:27:00 +02:00
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/google/protobuf/archive/v${TERMUX_PKG_VERSION}.tar.gz
2019-06-19 23:27:00 +02:00
TERMUX_PKG_SHA256=f1748989842b46fa208b2a6e4e2785133cfcc3e4d43c17fecb023733f0f5443f
TERMUX_PKG_DEPENDS="libc++, zlib"
2019-05-12 00:08:10 +02:00
TERMUX_PKG_FORCE_CMAKE=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-Dprotobuf_BUILD_TESTS=OFF
-DBUILD_SHARED_LIBS=ON
"
2019-05-12 00:08:10 +02:00
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR+="/cmake/"
}