# Maintainer: Hugo Denizart pkgname=obs-streamfx-git pkgver=0.12.0b299.r0.g8b97c2b2 pkgrel=1 pkgdesc="Bring your stream back to life with modern effects!" arch=("x86_64") url="https://github.com/Xaymar/obs-StreamFX" license=("GPL2") # same dependencies as OBS Studio + nlohmann-json + ninja makedepends depends=("ffmpeg" "jansson" "libxinerama" "libxkbcommon-x11" "qt6-base" "curl" "gtk-update-icon-cache" "obs-studio>=25" "nlohmann-json") makedepends=("cmake" "git" "libfdk-aac" "libxcomposite" "x264" "jack" "vlc" "swig" "luajit" "python" "ninja") provides=("obs-streamfx") conflicts=("obs-streamfx") source=("$pkgname::git+https://github.com/Xaymar/obs-StreamFX.git#branch=root") md5sums=("SKIP") pkgver() { cd "$pkgname" git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd $pkgname git submodule update --init --recursive } build() { cd $pkgname cmake -H. -B"build/flux" -G"Ninja" -DCMAKE_INSTALL_PREFIX="build/distrib" -DENABLE_UPDATER=FALSE -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc cmake --build "build/flux" --config RelWithDebInfo --target install } package() { cd $pkgname/build/distrib/plugins/StreamFX install -D -m 755 bin/64bit/StreamFX.so $pkgdir/usr/lib/obs-plugins/StreamFX.so mkdir -p $pkgdir/usr/share/obs/obs-plugins/StreamFX cp -R data/* $pkgdir/usr/share/obs/obs-plugins/StreamFX chmod 644 $pkgdir/usr/share/obs/obs-plugins/StreamFX/*/**/* } # vim: ts=2:sw=2:expandtab