Skip to content

Commit

Permalink
bump(main/wgetpaste): 2.34
Browse files Browse the repository at this point in the history
  • Loading branch information
twaik committed Oct 27, 2024
1 parent b48bf48 commit f28e0be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions packages/wgetpaste/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions packages/wgetpaste/fixpath.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/wgetpaste
+++ b/wgetpaste
@@ -334,7 +334,7 @@
@@ -351,7 +351,7 @@
noxclip() {
cat <<EOF >&2
Could not find xclip on your system. In order to use --x$1 you must either
Expand All @@ -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
Expand All @@ -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=
Expand All @@ -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
Expand All @@ -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\"."
Expand Down

0 comments on commit f28e0be

Please sign in to comment.