1
0
flewkey-overlay/media-plugins/obs-wlrobs/obs-wlrobs-9999.ebuild

46 lines
930 B
Bash
Raw Normal View History

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2020-02-26 01:53:27 -05:00
EAPI=7
EHG_REPO_URI="https://hg.sr.ht/~scoopta/wlrobs"
2020-02-26 01:53:27 -05:00
inherit mercurial meson
2020-02-26 01:53:27 -05:00
DESCRIPTION="Allows screen capture on wlroots-based Wayland compositors"
HOMEPAGE="https://hg.sr.ht/~scoopta/wlrobs"
LICENSE="GPL-3"
SLOT="0"
IUSE="dmabuf +scpy"
2020-08-20 16:29:00 -04:00
DEPEND="
2020-02-26 01:53:27 -05:00
dev-libs/wayland
media-video/obs-studio
dmabuf? (
x11-libs/libdrm
virtual/opengl
)
"
2020-08-20 16:29:00 -04:00
RDEPEND="${DEPEND}"
BDEPEND="
virtual/pkgconfig
dev-util/meson
"
2020-02-26 01:53:27 -05:00
src_configure() {
local emesonargs=(
2020-02-26 01:53:27 -05:00
$(meson_use dmabuf use_dmabuf)
$(meson_use scpy use_scpy)
)
meson_src_configure
}
src_install() {
local install_path="/usr/lib/obs-plugins/"
if $(uname -m | grep "64"); then
install_path="/usr/lib64/obs-plugins/"
fi
dodir "/usr/$(get_libdir)/obs-plugins"
cp "${S}-build/libwlrobs.so" "${D}/usr/$(get_libdir)/obs-plugins/libwlrobs.so" || die "Failed to install"
2020-02-26 01:53:27 -05:00
}