# Copyright 2022-2024 Robert Günzler # Distributed under the terms of the GNU General Public License v2 EAPI=8 USE_MPV="rdepend" MPV_REQ_USE="lua" inherit mpv-plugin DESCRIPTION="Playlist view overlay" HOMEPAGE="https://github.com/occivink/mpv-gallery-view" if [[ $PV = *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/occivink/mpv-gallery-view" else SRC_URI="https://github.com/occivink/mpv-gallery-view/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" fi LICENSE="UNLICENSE" KEYWORDS="~amd64" src_prepare() { default mkdir -p ${PN}/script-opts mv ./scripts/playlist-view.lua ./${PN}/main.lua mv ./script-modules/gallery.lua ./${PN}/gallery.lua mv ./script-opts/playlist_view.conf ./${PN}/script-opts/playlist_view.conf mkdir -p ${PN}-worker/script-opts mv ./scripts/gallery-thumbgen.lua ./${PN}-worker/main.lua mv ./script-opts/gallery_worker.conf ./${PN}-worker/script-opts/playlist_view_worker.conf } MPV_PLUGIN_FILES=( ${PN} ${PN}-worker )