blob: e02eb596050e32ab50d54f03f07be7da8cf00e59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: tytan652 <tytan652@tytanium.xyz>
_pluginname=recursion-effect
pkgname=obs-$_pluginname
pkgver=0.0.4
_obsver=28.0.0
pkgrel=4
pkgdesc="Plugin for add recursion effect to a source using a filter"
arch=("i686" "x86_64" "aarch64")
url="https://obsproject.com/forum/resources/recursion-effect.1008/"
license=("GPL2")
depends=("obs-studio>=$_obsver")
makedepends=("cmake" "git" "libxcomposite" "ffmpeg" "pciutils")
source=(
"$pkgname::git+https://github.com/exeldro/$pkgname#commit=f114388665d30a78cf907a1f167c05aa64543a90"
"obs-studio-$_obsver.tar.gz::https://github.com/obsproject/obs-studio/archive/$_obsver.tar.gz"
)
sha256sums=(
"SKIP"
"412a1a26699a6861dbbe93346310d002369c62e00626e8c3a77c127e5e1c06e8"
)
prepare() {
rm -rf fakeroot
cd "obs-studio-$_obsver"/plugins
cp -r "$srcdir/$pkgname" .
sed -i 's|check_obs_browser()||g' CMakeLists.txt
sed -i 's|FATAL_ERROR "obs-websocket|STATUS "obs-websocket|g' CMakeLists.txt
echo "add_subdirectory($pkgname)" | tee -a CMakeLists.txt >/dev/null
}
# Need to compile plugin in OBS compilation process
build() {
cd "obs-studio-$_obsver"
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DENABLE_UI=OFF \
-DENABLE_WAYLAND=OFF \
-DENABLE_PIPEWIRE=OFF \
-DENABLE_SCRIPTING=OFF \
-DENABLE_DECKLINK=OFF \
-DENABLE_ALSA=OFF \
-DENABLE_JACK=OFF \
-DENABLE_PULSEAUDIO=OFF \
-DENABLE_V4L2=OFF \
-DENABLE_SPEEXDSP=OFF \
-DENABLE_LIBFDK=OFF \
-DENABLE_SNDIO=OFF \
-DENABLE_FREETYPE=OFF \
-DENABLE_VLC=OFF \
-DENABLE_BROWSER=OFF \
-DENABLE_VST=OFF \
-DENABLE_RTMPS=OFF \
-DENABLE_AJA=OFF \
-DENABLE_NEW_MPEGTS_OUTPUT=OFF
make -C build
}
package() {
mkdir -p "$pkgdir"/usr/lib/obs-plugins
mkdir -p "$pkgdir"/usr/share/obs/obs-plugins
cd "obs-studio-$_obsver"
make -C build DESTDIR="$srcdir/fakeroot/" install
cp -a "$srcdir"/fakeroot/usr/lib/obs-plugins/$_pluginname.so "$pkgdir"/usr/lib/obs-plugins/
cp -a "$srcdir"/fakeroot/usr/share/obs/obs-plugins/$_pluginname "$pkgdir"/usr/share/obs/obs-plugins/
}
|