new package: ytfzf

This commit is contained in:
Tee KOBAYASHI 2022-03-31 10:45:48 +09:00 committed by xtkoba
parent cae3aec6b0
commit bdb96ed219
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
BINDIR=${PREFIX}/bin
DOCDIR=${PREFIX}/share/doc/ytfzf
MANDIR=${PREFIX}/share/man
-LICENSEDIR=${PREFIX}/share/licenses/ytfzf
+LICENSEDIR=${DOCDIR}
YTFZF_SYSTEM_ADDON_DIR=${PREFIX}/share/ytfzf/addons
@@ -18,7 +18,7 @@
cp docs/conf.sh ${DESTDIR}${DOCDIR}
cp LICENSE ${DESTDIR}${LICENSEDIR}
-install:
+install: doc
chmod 755 ${PROG}
cp ${PROG} ${PROG}.bak
mkdir -p ${DESTDIR}${BINDIR}

16
packages/ytfzf/build.sh Normal file
View File

@ -0,0 +1,16 @@
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_SRCURL=https://github.com/pystardust/ytfzf/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=967de40de90d4143865f6d7597038b2f95bf54c6249b763b91bb1e0b2f59c058
TERMUX_PKG_DEPENDS="curl, jq"
TERMUX_PKG_RECOMMENDS="fzf, mpv"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="PREFIX=$TERMUX_PREFIX"
termux_step_make() {
:
}

View File

@ -0,0 +1,20 @@
--- a/ytfzf
+++ b/ytfzf
@@ -189,7 +189,7 @@
: "${YTFZF_URL_HANDLERS_DIR:=$YTFZF_CONFIG_DIR/url-handlers}"
: "${YTFZF_CUSTOM_THUMBNAILS_DIR:=$YTFZF_CONFIG_DIR/thumbnails}"
-: "${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}"
-: "${w3mimgdisplay_path:=/usr/lib/w3m/w3mimgdisplay}"
+: "${w3mimgdisplay_path:=@TERMUX_PREFIX@/lib/w3m/w3mimgdisplay}"
# shortcuts
: "${download_shortcut:=alt-d}"