libgrpc: use new termux_git_clone_src function
This commit is contained in:
parent
eb84d04e21
commit
9d1dcd53af
@ -1,6 +1,7 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://grpc.io/
|
||||
TERMUX_PKG_DESCRIPTION="High performance, open source, general RPC framework that puts mobile and HTTP/2 first"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_SRCURL=https://github.com/grpc/grpc.git
|
||||
TERMUX_PKG_VERSION=1.29.1
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_DEPENDS="libc++, openssl, protobuf, c-ares, zlib"
|
||||
@ -24,26 +25,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
-DProtobuf_PROTOC_LIBRARY=$TERMUX_PREFIX/lib/libprotoc.so
|
||||
"
|
||||
|
||||
termux_step_extract_package() {
|
||||
local CHECKED_OUT_FOLDER=$TERMUX_PKG_CACHEDIR/checkout-$TERMUX_PKG_VERSION
|
||||
if [ ! -d $CHECKED_OUT_FOLDER ]; then
|
||||
local TMP_CHECKOUT=$TERMUX_PKG_TMPDIR/tmp-checkout
|
||||
rm -Rf $TMP_CHECKOUT
|
||||
mkdir -p $TMP_CHECKOUT
|
||||
|
||||
git clone --depth 1 \
|
||||
--branch v$TERMUX_PKG_VERSION \
|
||||
https://github.com/grpc/grpc.git \
|
||||
$TMP_CHECKOUT
|
||||
cd $TMP_CHECKOUT
|
||||
git submodule update --init # --depth 1
|
||||
mv $TMP_CHECKOUT $CHECKED_OUT_FOLDER
|
||||
fi
|
||||
|
||||
mkdir $TERMUX_PKG_SRCDIR
|
||||
cd $TERMUX_PKG_SRCDIR
|
||||
cp -Rf $CHECKED_OUT_FOLDER/* .
|
||||
|
||||
termux_step_post_get_source() {
|
||||
termux_setup_protobuf
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user