diff options
author | tytan652 | 2022-11-16 08:15:47 +0100 |
---|---|---|
committer | tytan652 | 2022-11-16 08:15:47 +0100 |
commit | cdbaa1b151357bde26da4b9c0e7352b83a93ec0f (patch) | |
tree | 7913e159b61da37a527b39eeb266300cf2fc979d /PKGBUILD | |
parent | e3aafec10572b7920fd5cbc48a15f5859a8913d4 (diff) | |
download | aur-cdbaa1b151357bde26da4b9c0e7352b83a93ec0f.tar.gz |
build: Update to version 0.3.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 72 |
1 files changed, 16 insertions, 56 deletions
@@ -1,70 +1,30 @@ # Maintainer: tytan652 <tytan652@tytanium.xyz> -_pluginname=source-record -pkgname=obs-$_pluginname -pkgver=0.3.0 -_obsver=28.0.0 -pkgrel=2 +pkgname=obs-source-record +pkgver=0.3.1 +pkgrel=1 pkgdesc="Plugin for OBS Studio to add a filter that allows you to record a source" -arch=("i686" "x86_64" "aarch64") +arch=("x86_64" "aarch64") url="https://obsproject.com/forum/resources/source-record.1285/" license=("GPL2") -depends=("obs-studio>=$_obsver") -makedepends=("cmake" "git" "libxcomposite" "ffmpeg" "pciutils") -source=( - "$pkgname::git+https://github.com/exeldro/$pkgname#commit=8d71fc5c6994cce68b912ae3c075e39415f982aa" - "obs-studio-$_obsver.tar.gz::https://github.com/obsproject/obs-studio/archive/$_obsver.tar.gz" -) -sha256sums=( - "SKIP" - "412a1a26699a6861dbbe93346310d002369c62e00626e8c3a77c127e5e1c06e8" -) +depends=("obs-studio>=28") +makedepends=("cmake" "git") +source=("$pkgname::git+https://github.com/exeldro/$pkgname#commit=4a543d3577d56a27f5f2b9aa541a466b37dafde0") +sha256sums=("SKIP") -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" + cd "$pkgname" cmake -B build \ - -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -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 + -DLINUX_PORTABLE=OFF \ + -DQT_VERSION=6 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/ -}
\ No newline at end of file + cd "$pkgname" + make -C build DESTDIR="$pkgdir/" install +} |