new package: diffstat
This commit is contained in:
parent
fdf35a1a7b
commit
bd845ea6a5
|
@ -0,0 +1,7 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://invisible-island.net/diffstat/diffstat.html
|
||||
TERMUX_PKG_DESCRIPTION="Displays a histogram of changes to a file"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.64
|
||||
TERMUX_PKG_SRCURL=https://invisible-mirror.net/archives/diffstat/diffstat-${TERMUX_PKG_VERSION}.tgz
|
||||
TERMUX_PKG_SHA256=b8aee38d9d2e1d05926e6b55810a9d2c2dd407f24d6a267387563a4436e3f7fc
|
|
@ -0,0 +1,11 @@
|
|||
--- a/diffstat.c
|
||||
+++ b/diffstat.c
|
||||
@@ -3142,7 +3142,7 @@ copy_stdin(char **dirpath)
|
||||
const char *tmp = getenv("TMPDIR");
|
||||
char *result = 0;
|
||||
if (tmp == 0)
|
||||
- tmp = "/tmp/";
|
||||
+ tmp = "@TERMUX_PREFIX@/tmp/";
|
||||
*dirpath = xmalloc(strlen(tmp) + 12);
|
||||
|
||||
strcpy(*dirpath, tmp);
|
Loading…
Reference in New Issue