new package: diffstat

This commit is contained in:
Tee KOBAYASHI 2021-12-16 04:43:41 +09:00 committed by Leonid Pliushch
parent fdf35a1a7b
commit bd845ea6a5
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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);