2017-02-14 16:51:35 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://libgit2.github.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="C library implementing Git core methods"
|
2018-04-06 23:05:55 +02:00
|
|
|
TERMUX_PKG_VERSION=0.27.0
|
|
|
|
TERMUX_PKG_SHA256=545b0458292c786aba334f1bf1c8f73600ae73dd7205a7bb791a187ee48ab8d2
|
2017-02-14 16:51:35 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/libgit2/libgit2/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
|
|
TERMUX_PKG_DEPENDS="libcurl, openssl"
|
2018-04-08 23:33:39 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-02-14 16:51:35 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_CLAR=OFF"
|
2018-04-08 23:34:43 +02:00
|
|
|
|
2018-04-08 23:33:39 +02:00
|
|
|
termux_step_pre_configure() {
|
2018-04-08 23:34:43 +02:00
|
|
|
# Fixes for arm https://github.com/android-ndk/ndk/issues/642
|
|
|
|
# Can be removed after updating to NDK r17.
|
2018-04-08 23:33:39 +02:00
|
|
|
if [ $TERMUX_ARCH = "arm" ]; then
|
2018-04-08 23:34:43 +02:00
|
|
|
CFLAGS+=" -mllvm -arm-promote-constant=0"
|
|
|
|
fi
|
2018-04-08 23:33:39 +02:00
|
|
|
}
|