2017-02-14 16:51:35 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://libgit2.github.com/
|
|
|
|
TERMUX_PKG_DESCRIPTION="C library implementing Git core methods"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2022-02-22 15:13:51 +01:00
|
|
|
TERMUX_PKG_LICENSE_FILE="COPYING"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-02-27 01:24:22 +01:00
|
|
|
TERMUX_PKG_VERSION=1.4.2
|
2022-03-01 04:52:15 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-02-14 16:51:35 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/libgit2/libgit2/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-02-27 01:24:22 +01:00
|
|
|
TERMUX_PKG_SHA256=901c2b4492976b86477569502a41c31b274b69adc177149c02099ea88404ef19
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-02-22 15:13:51 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libssh2, openssl, pcre, zlib"
|
|
|
|
TERMUX_PKG_BUILD_DEPENDS="libiconv, libpcreposix"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="libgit2-dev"
|
|
|
|
TERMUX_PKG_REPLACES="libgit2-dev"
|
2022-02-22 15:13:51 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DUSE_SSH=ON
|
|
|
|
-DREGEX_BACKEND=pcre
|
|
|
|
"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
find "$TERMUX_PKG_SRCDIR" -name CMakeLists.txt | xargs -n 1 \
|
|
|
|
sed -i 's/\( PROPERTIES C_STANDARD\) 90/\1 99/g'
|
2022-02-23 18:04:24 +01:00
|
|
|
|
|
|
|
cp "$TERMUX_PKG_BUILDER_DIR"/getloadavg.c "$TERMUX_PKG_SRCDIR"/src/
|
2022-02-22 15:13:51 +01:00
|
|
|
}
|