diff --git a/packages/ytfzf/Makefile.patch b/packages/ytfzf/Makefile.patch new file mode 100644 index 000000000..c6c7a6368 --- /dev/null +++ b/packages/ytfzf/Makefile.patch @@ -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} diff --git a/packages/ytfzf/build.sh b/packages/ytfzf/build.sh new file mode 100644 index 000000000..fbd72781e --- /dev/null +++ b/packages/ytfzf/build.sh @@ -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() { + : +} diff --git a/packages/ytfzf/ytfzf.patch b/packages/ytfzf/ytfzf.patch new file mode 100644 index 000000000..4b6013d69 --- /dev/null +++ b/packages/ytfzf/ytfzf.patch @@ -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}"