# Template file for 'obs' pkgname=obs version=23.0.2 revision=1 _commit_hash_obs_browser="693498b518cf893876f454ef581e13106e8370ec" _commit_hash_obs_vst="fde438f7a8afdf41a7ab386a0aa1a61175fc8427" _commit_hash_ftl_sdk="98289f7c2ed754c647d451899b3356850c0c1fa3" archs="i686* x86_64*" wrksrc="obs-studio-${version}" build_style=cmake configure_args="-DOBS_VERSION_OVERRIDE=${version}" hostmakedepends="pkg-config swig" makedepends="LuaJIT-devel fdk-aac-devel ffmpeg-devel glu-devel jack-devel libXcomposite-devel libcurl-devel pulseaudio-devel python3-devel qt5-x11extras-devel speexdsp-devel v4l-utils-devel vlc-devel x264-devel" short_desc="Open Broadcaster Software" maintainer="lemmi " license="GPL-2.0-or-later" homepage="https://obsproject.com" changelog="https://github.com/obsproject/obs-studio/releases" distfiles="https://github.com/obsproject/obs-studio/archive/${version}.tar.gz https://github.com/obsproject/obs-browser/archive/${_commit_hash_obs_browser}.tar.gz>obs_browser.tgz https://github.com/obsproject/obs-vst/archive/${_commit_hash_obs_vst}.tar.gz>obs_vst.tgz https://github.com/Mixer/ftl-sdk/archive/${_commit_hash_ftl_sdk}.tar.gz>ftl_sdk.tgz" checksum="c322bcebde2a3cb6221aee3d30d96a287a0df2fb08f16f7f90d277cd6c9e91b5 354c5775bba5f43c2d94ed3ca1777dbb7b686f7f7a943683996dbb3aac1037ac 0e450202e6a90f56132de0415a3d4615e9807b799a3d1955e45b33df68535cec 00bb0d9dfe9cccd865eea4ebbe77e3a1f4a138b4a18ab4efb25ec3cddb6d1fd1" post_extract() { rmdir ./plugins/obs-browser; mv -T "../obs-browser-${_commit_hash_obs_browser}" ./plugins/obs-browser; rmdir ./plugins/obs-vst; mv -T "../obs-vst-${_commit_hash_obs_vst}" ./plugins/obs-vst; rmdir ./plugins/obs-outputs/ftl-sdk; mv -T "../ftl-sdk-${_commit_hash_ftl_sdk}" ./plugins/obs-outputs/ftl-sdk; } post_install() { mv "${DESTDIR}/usr/share/obs/obs-plugins/obs-ffmpeg/ffmpeg-mux" "${DESTDIR}/usr/bin" ln -s "/usr/bin/ffmpeg-mux" "${DESTDIR}/usr/share/obs/obs-plugins/obs-ffmpeg" } obs-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/cmake vmove usr/lib/pkgconfig } } # REMARKS: # lemmi writes: needed to remove vmove usr/lib/*.so from the devel package, # otherwise obs would pull it in.