diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-08 21:16:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-08 21:16:36 +0000 |
commit | 750f865355947c40a4b93cd7a5db23eebc4e5080 (patch) | |
tree | d09084ef3a0baa1b4e6adbdbb4e85abc21f6650f /net-misc/ytfzf | |
parent | c51985271f4c8e0bc79728c6cecf15d6b6515914 (diff) |
gentoo auto-resync : 08:12:2022 - 21:16:36
Diffstat (limited to 'net-misc/ytfzf')
-rw-r--r-- | net-misc/ytfzf/Manifest | 2 | ||||
-rw-r--r-- | net-misc/ytfzf/ytfzf-2.5.3.ebuild | 59 |
2 files changed, 61 insertions, 0 deletions
diff --git a/net-misc/ytfzf/Manifest b/net-misc/ytfzf/Manifest index 2c29a019a691..81900aa15c17 100644 --- a/net-misc/ytfzf/Manifest +++ b/net-misc/ytfzf/Manifest @@ -1,3 +1,5 @@ DIST ytfzf-2.5.2.tar.gz 3263326 BLAKE2B aa0e6b01ba90217df1e488cfbe74f44baadee0fa5f6e29f45ef79af9a0d9587ef394b345ddf6b8a86282f57f097c6728adccba2e444eda38d1746ae95438900f SHA512 aa87d2f3c50bfed3c49d363b23bdf17c6c5307116648f3042148d828d204cc9f1ce61888a82fade26e46dc46991cb2c8f559f5f9aa671d8bcf425d343fdff389 +DIST ytfzf-2.5.3.tar.gz 3265442 BLAKE2B e920bf60a567741cc84739d20f282c27036eafaa823ea273439e49f9b855798a11f611ee8b4893490538d24c3039f2780451272f82ead73c45fb0f2124e05417 SHA512 fcc9e6064fe381972f30a94fd418ba9a497fed4be891f40b75e608a4c095f7b311000ae104d8e877b52622defa4ff57cb0ec1ace4d034ba08f0ff3985438d58d EBUILD ytfzf-2.5.2.ebuild 1428 BLAKE2B e2eddcee03517c5a01ceac852c4e4945f3da15d3fcb96f9fa028dafd4a0d52884e5b19e1ed0660ad49d4155b4171b88f731e16599ef26ff1f4c582ed77bb7992 SHA512 07d64edc61bb5ecd11ea4f88622da466999f353fb0b25cd86a3c9cd386739ec61e9f641ad082cb8113f4fd555a8e7d00347516f5153925173027ca6821ccff3a +EBUILD ytfzf-2.5.3.ebuild 1430 BLAKE2B f8b722defcf794c1b277ac83848a1e66bd7c8d8f7abfd1c42f30cf5e52240fbb456d0cb6c98d5ea52ba7b64ccfe0dcfee1cefa705172f3f77f3afa7196c94478 SHA512 02ceb6563b21541e37c6891a36dcea7f419185a50cd833b9e67d94723ab730d0c0b5be85948b36b9d25d73d1691f5e2b7b32f8eb497411a811e5015e7c3c988f MISC metadata.xml 498 BLAKE2B 465ce6a83a75395c9021b7208a156bc91f55fe2522279a781509bc490e832611e89718317c88d4e2986f16f6ea1f8bc457d2f5978efa011e62c56cef756cf0ed SHA512 49f6d3c039246622d687f63b703390eef0d4fef51f485a091ccdb767da1b2cd8a380275cabe6117465add0e15acf6f6533033a5b17c751091abe462a43044884 diff --git a/net-misc/ytfzf/ytfzf-2.5.3.ebuild b/net-misc/ytfzf/ytfzf-2.5.3.ebuild new file mode 100644 index 000000000000..13c448f9f13f --- /dev/null +++ b/net-misc/ytfzf/ytfzf-2.5.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="Posix script to find and watch youtube videos from the terminal" +HOMEPAGE="https://github.com/pystardust/ytfzf/" +SRC_URI="https://github.com/pystardust/ytfzf/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X minimal" + +RDEPEND=" + app-misc/jq + net-misc/curl[ssl] + app-alternatives/awk + !minimal? ( + X? ( media-gfx/ueberzug ) + app-shells/fzf + media-video/mpv[lua] + net-misc/yt-dlp + )" + +src_prepare() { + default + + sed -i "/^: ...YTFZF_SYSTEM_ADDON_DIR/s|/usr/local|${EPREFIX}/usr|" ytfzf || die +} + +src_compile() { :; } + +src_install() { + local emakeargs=( + DESTDIR="${D}" + PREFIX="${EPREFIX}"/usr + DOCDIR="${EPREFIX}"/usr/share/doc/${PF} + ) + + emake "${emakeargs[@]}" addons doc install + einstalldocs + + rm -r "${ED}"/usr/share/licenses || die +} + +pkg_postinst() { + optfeature "external menu support" x11-misc/dmenu + optfeature "desktop notifications" x11-libs/libnotify + + if [[ ! ${REPLACING_VERSIONS} ]]; then + elog "Note that ${PN} supports many methods to display menus/thumbnails." + elog "This ebuild primarily covers defaults and major features, additional" + elog "dependencies may be needed for others. Set USE=minimal if want full" + elog "control over optional dependencies (e.g. fzf is optional if use dmenu)." + fi +} |