From 139985f059fafabf22091e61ac20721cbf9b33c4 Mon Sep 17 00:00:00 2001 From: Twaik Yont Date: Sun, 27 Oct 2024 17:43:27 +0200 Subject: [PATCH] bump(main/wgetpaste): 2.34 --- packages/wgetpaste/build.sh | 5 +++-- packages/wgetpaste/fixpath.patch | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/wgetpaste/build.sh b/packages/wgetpaste/build.sh index b50c88dc1df3c81..a4052a2831a7cff 100644 --- a/packages/wgetpaste/build.sh +++ b/packages/wgetpaste/build.sh @@ -2,9 +2,10 @@ TERMUX_PKG_HOMEPAGE=https://github.com/zlin/wgetpaste TERMUX_PKG_DESCRIPTION="wgetpaste is a shell script that allows its users to upload log." TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="@termux" -TERMUX_PKG_VERSION=2.33 +TERMUX_PKG_VERSION="2.34" TERMUX_PKG_SRCURL=https://github.com/zlin/wgetpaste/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=b32a283c84dc7b35b3a803ac330c7f13a2faef404809139e3ac5fca7a44bba3e +TERMUX_PKG_SHA256=097b77440460365976f8f66e99b0150c8a9527307f6ecade1db6b60a0bfad781 +TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="wget" TERMUX_PKG_SUGGESTS="xclip" TERMUX_PKG_BUILD_IN_SRC=true diff --git a/packages/wgetpaste/fixpath.patch b/packages/wgetpaste/fixpath.patch index 1bef6dd50c19812..d18422d3c0233c8 100644 --- a/packages/wgetpaste/fixpath.patch +++ b/packages/wgetpaste/fixpath.patch @@ -1,6 +1,6 @@ --- a/wgetpaste +++ b/wgetpaste -@@ -334,7 +334,7 @@ +@@ -351,7 +351,7 @@ noxclip() { cat <&2 Could not find xclip on your system. In order to use --x$1 you must either @@ -9,7 +9,7 @@ per user in ~/.wgetpaste.conf to use another program (such as e.g. xcut or klipper) to $2 your clipboard. -@@ -532,11 +532,11 @@ +@@ -567,11 +567,11 @@ --debug be *very* verbose (implies -v) -h, --help show this help @@ -23,7 +23,7 @@ per user in any of ~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf. An additional http header can be passed by setting HEADER_\${SERVICE} in any of the -@@ -823,7 +823,7 @@ +@@ -728,7 +728,7 @@ if [[ ! $IGNORECONFIGS ]]; then # compatibility code local f deprecated= @@ -32,7 +32,7 @@ if [[ -f $f ]]; then if [[ -z $deprecated ]]; then echo "The config files for wgetpaste have changed to *.conf.$N" >&2 -@@ -835,7 +835,7 @@ +@@ -740,7 +740,7 @@ done [[ -n $deprecated ]] && echo >&2 # new locations override old ones in case they collide @@ -41,20 +41,20 @@ if [[ -f $f ]]; then source "$f" || die "Failed to source $f" fi -@@ -922,7 +922,7 @@ +@@ -974,7 +974,7 @@ # create tmpfile for use with tee if [[ $TEE ]]; then -- TMPF=$(mktemp /tmp/wgetpaste.XXXXXX) +- TMPF=$(mktemp -q --tmpdir wgetpaste.XXXXXX) + TMPF=$(mktemp @TERMUX_PREFIX@/tmp/wgetpaste.XXXXXX) [[ -f $TMPF ]] || die "Could not create a temporary file for use with tee." fi -@@ -1026,7 +1026,7 @@ +@@ -1078,7 +1078,7 @@ else # create temp file (wget is much more reliable reading # large input via --post-file rather than --post-data) -- [[ -f $TMPF ]] || TMPF=$(mktemp /tmp/wgetpaste.XXXXXX) +- [[ -f $TMPF ]] || TMPF=$(mktemp -q --tmpdir wgetpaste.XXXXXX) + [[ -f $TMPF ]] || TMPF=$(mktemp @TERMUX_PREFIX@/tmp/wgetpaste.XXXXXX) if [[ -f $TMPF ]]; then postdata > "$TMPF" || die "Failed to write to temporary file: \"$TMPF\"."