void-packages/srcpkgs/obs/template
2019-12-31 06:12:57 +01:00

52 lines
2.1 KiB
Bash

# Template file for 'obs'
pkgname=obs
version=24.0.5
revision=1
_commit_hash_obs_browser="693498b518cf893876f454ef581e13106e8370ec"
_commit_hash_obs_vst="fde438f7a8afdf41a7ab386a0aa1a61175fc8427"
_commit_hash_ftl_sdk="98289f7c2ed754c647d451899b3356850c0c1fa3"
archs="i686* x86_64* ppc64le*"
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 qt5-svg-devel speexdsp-devel v4l-utils-devel vlc-devel
x264-devel mbedtls-devel"
short_desc="Open Broadcaster Software"
maintainer="lemmi <lemmi@nerd2nerd.org>"
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="b3d65f36ad2bfcd6ffde1771be64662ce8e8771349fab82bb49f80dbb1f5f2e6
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;
}
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.