ytfzf: update to 2.4.0
This commit is contained in:
parent
0b423e08f1
commit
338ab2c6fa
|
@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/pystardust/ytfzf
|
|||
TERMUX_PKG_DESCRIPTION="A POSIX script that helps you find Youtube videos (without API)"
|
||||
TERMUX_PKG_LICENSE="GPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2.2
|
||||
TERMUX_PKG_VERSION=2.4.0
|
||||
TERMUX_PKG_SRCURL=https://github.com/pystardust/ytfzf/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=967de40de90d4143865f6d7597038b2f95bf54c6249b763b91bb1e0b2f59c058
|
||||
TERMUX_PKG_SHA256=887cced6619f3d941f95c8b08c1446699951bb75f0e8c6eaf22d6992548d8f59
|
||||
TERMUX_PKG_DEPENDS="curl, jq"
|
||||
TERMUX_PKG_RECOMMENDS="fzf, mpv"
|
||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||
|
|
|
@ -1,20 +1,38 @@
|
|||
--- a/ytfzf
|
||||
+++ b/ytfzf
|
||||
@@ -189,7 +189,7 @@
|
||||
: "${YTFZF_URL_HANDLERS_DIR:=$YTFZF_CONFIG_DIR/url-handlers}"
|
||||
@@ -168,7 +168,7 @@
|
||||
# clean up only as parent process
|
||||
#kill ytfzf sub process{{{
|
||||
#i think this needs to be written to a file because of sub-shells
|
||||
- jobs_file="${TMPDIR:-/tmp}/the-jobs-need-to-be-written-to-a-file.list"
|
||||
+ jobs_file="${TMPDIR:-@TERMUX_PREFIX@/tmp}/the-jobs-need-to-be-written-to-a-file.list"
|
||||
jobs -p > "$jobs_file"
|
||||
while read -r line; do
|
||||
[ "$line" ] && kill "$line" 2> /dev/null
|
||||
@@ -312,7 +312,7 @@
|
||||
: "${YTFZF_CUSTOM_THUMBNAILS_DIR:=$YTFZF_CONFIG_DIR/thumbnails}"
|
||||
: "${YTFZF_EXTENSIONS_DIR:=$YTFZF_CONFIG_DIR/extensions}"
|
||||
|
||||
-: "${YTFZF_SYSTEM_ADDON_DIR:=/usr/local/share/ytfzf/addons}"
|
||||
+: "${YTFZF_SYSTEM_ADDON_DIR:=@TERMUX_PREFIX@/share/ytfzf/addons}"
|
||||
|
||||
[ -f "$YTFZF_CONFIG_FILE" ] && . "$YTFZF_CONFIG_FILE"
|
||||
#}}}
|
||||
@@ -249,7 +249,7 @@
|
||||
|
||||
: "${thumbnail_viewer:=ueberzug}"
|
||||
@@ -325,7 +325,7 @@
|
||||
|
||||
-: "${w3mimgdisplay_path:=/usr/lib/w3m/w3mimgdisplay}"
|
||||
+: "${w3mimgdisplay_path:=@TERMUX_PREFIX@/lib/w3m/w3mimgdisplay}"
|
||||
#save the ecurrent environment so that any user set variables will be saved
|
||||
if [ "$check_exists" -eq 1 ]; then
|
||||
- tmp_env=/tmp/ytfzf-env
|
||||
+ tmp_env=@TERMUX_PREFIX@/tmp/ytfzf-env
|
||||
env > "$tmp_env"
|
||||
fi
|
||||
|
||||
# shortcuts
|
||||
: "${download_shortcut:=alt-d}"
|
||||
@@ -348,7 +348,7 @@
|
||||
|
||||
fzf_preview_side="left" thumbnail_viewer="ueberzug"
|
||||
|
||||
- w3mimgdisplay_path="/usr/lib/w3m/w3mimgdisplay"
|
||||
+ w3mimgdisplay_path="@TERMUX_PREFIX@/tmp/lib/w3m/w3mimgdisplay"
|
||||
|
||||
# shortcuts
|
||||
download_shortcut="alt-d" video_shortcut="alt-v" audio_shortcut="alt-m" detach_shortcut="alt-e" print_link_shortcut="alt-l" show_formats_shortcut="alt-f" info_shortcut="alt-i" search_again_shortcut="alt-s" next_page_shortcut="alt-p"
|
||||
|
|
Loading…
Reference in New Issue