obs-studio-plugin-unix-sock.../archLinuxPackaging/PKGBUILD

24 lines
839 B
Bash

pkgname=obs-studio-plugin-unix-socket-control
pkgver=1.2
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=(379d04206718dfc0ca30b6f9d9099c0e36f45726b75f45c580a8cd9fa660fbc3)
build() {
cd "$pkgname"
mkdir buildRelease
cd buildRelease
cmake -DCMAKE_BUILD_TYPE=Release ..
make
}
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"
}