From bd845ea6a5dbea5c124ddb07754e5dd58ecd28d6 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Thu, 16 Dec 2021 04:43:41 +0900 Subject: [PATCH] new package: diffstat --- packages/diffstat/build.sh | 7 +++++++ packages/diffstat/diffstat.c.patch | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 packages/diffstat/build.sh create mode 100644 packages/diffstat/diffstat.c.patch diff --git a/packages/diffstat/build.sh b/packages/diffstat/build.sh new file mode 100644 index 000000000..7730266d8 --- /dev/null +++ b/packages/diffstat/build.sh @@ -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 diff --git a/packages/diffstat/diffstat.c.patch b/packages/diffstat/diffstat.c.patch new file mode 100644 index 000000000..651f356e6 --- /dev/null +++ b/packages/diffstat/diffstat.c.patch @@ -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);