Add wlrobs
This commit is contained in:
parent
206631877b
commit
4b26a75790
1
media-plugins/obs-wlrobs/Manifest
Normal file
1
media-plugins/obs-wlrobs/Manifest
Normal file
@ -0,0 +1 @@
|
||||
EBUILD obs-wlrobs-9999.ebuild 991 BLAKE2B e24adb90d463aed9d092c684f91e1dd00ec135d13ef95a862460dcb45a49baaf5a6f376c94ed59a9d1965e73a0bff37d047d875c2ad6ae4ca907c5c17217f8c1 SHA512 beca80fdad30eee4fc67a4769a4f10bc3bf919cab41709dbbccc3ed69b5f661bdf23d698d14a7d4d73a2a23d602d039350bc87c3b52510f5172bcef8284115a0
|
48
media-plugins/obs-wlrobs/obs-wlrobs-9999.ebuild
Normal file
48
media-plugins/obs-wlrobs/obs-wlrobs-9999.ebuild
Normal file
@ -0,0 +1,48 @@
|
||||
EAPI=7
|
||||
|
||||
inherit meson
|
||||
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
SRC_URI="https://files.2a03.party/~flewkey/distfiles/${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
else
|
||||
inherit mercurial
|
||||
EHG_REPO_URI="https://hg.sr.ht/~scoopta/wlrobs"
|
||||
fi
|
||||
|
||||
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=(
|
||||
$(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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user