obs-studio-plugin-unix-sock.../archLinuxPackaging/PKGBUILD
Stephen Seo 257ba1db6c
All checks were successful
Create releases with ArchLinux pkg / check-and-build-and-release (push) Successful in 15s
Impl "--wait"
"--wait" causes the server to wait for the action to complete before
sending a response to the client.
2024-07-21 12:37:21 +09:00

22 lines
832 B
Bash

pkgname=obs-studio-plugin-unix-socket-control
pkgver=1.4.0
pkgrel=1
pkgdesc="An obs studio plugin to command obs to start/stop recording/streaming via unix socket"
arch=(x86_64)
url="https://git.seodisparate.com/stephenseo/obs-studio-plugin-unix-socket-control"
license=('MIT')
depends=(obs-studio)
makedepends=(cmake)
source=("${pkgname}_${pkgver}.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=(259ea3e490da13dd98b5593571310b7f0abab926be8436b00a272ca768b08eac)
build() {
cd "$pkgname"
cmake -S . -B buildRelease -DCMAKE_BUILD_TYPE=Release
make -C buildRelease
}
package() {
install -D -m555 "$srcdir/$pkgname/buildRelease/libunix-socket-control.so" "$pkgdir/usr/lib/obs-plugins/lib$pkgname.so"
install -D -m555 "$srcdir/$pkgname/buildRelease/unix-socket-control-client" "$pkgdir/usr/bin/$pkgname-client"
}