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

45 lines
898 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"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="
dev-libs/wayland
media-video/obs-studio
virtual/pkgconfig
dev-util/meson
dmabuf? (
x11-libs/libdrm
virtual/opengl
)
"
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 ${install_path}
cp "${S}-build/libwlrobs.so" "${D}/${install_path}/libwlrobs.so" || die "Failed to install"
}