libgit2: use directory '/etc' in Termux prefix
This commit is contained in:
parent
e75c3c0cfe
commit
545a2cfae4
@ -1,6 +1,7 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://libgit2.github.com/
|
||||
TERMUX_PKG_DESCRIPTION="C library implementing Git core methods"
|
||||
TERMUX_PKG_VERSION=0.26.0
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://github.com/libgit2/libgit2/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=4ac70a2bbdf7a304ad2a9fb2c53ad3c8694be0dbec4f1fce0f3cd0cda14fb3b9
|
||||
TERMUX_PKG_DEPENDS="libcurl, openssl"
|
||||
|
12
packages/libgit2/fix-etc-dir-path.patch
Normal file
12
packages/libgit2/fix-etc-dir-path.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -uNr libgit2-0.26.0/src/sysdir.c libgit2-0.26.0.mod/src/sysdir.c
|
||||
--- libgit2-0.26.0/src/sysdir.c 2017-06-14 14:31:20.000000000 +0300
|
||||
+++ libgit2-0.26.0.mod/src/sysdir.c 2017-09-12 11:57:35.382990676 +0300
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifdef GIT_WIN32
|
||||
return git_win32__find_system_dirs(out, L"etc\\");
|
||||
#else
|
||||
- return git_buf_sets(out, "/etc");
|
||||
+ return git_buf_sets(out, "@TERMUX_PREFIX@/etc");
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user