# obs-studio - Live streaming and screen recording
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=obs-studio
version=32.0.1
release=1
desc="Live streaming and screen recording"
url="https://obsproject.com/"
license="GPL-2.0-or-later"
depend="ffmpeg qt6-base mesa pipewire libva luajit"
makedepend="cmake ninja"
source="https://github.com/obsproject/obs-studio/archive/refs/tags/32.0.1.tar.gz"
sha256="SKIP"

build() {
	cmake -S "obs-studio-32.0.1" -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON
	ninja -C build -j"$JOBS"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}
