summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 874b6db2866512b8d539bf013a9511eefa98faf5 (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
# Maintainer: tytan652 <tytan652@tytanium.xyz>

pkgname=obs-advanced-scene-switcher
pkgver=1.17.2
pkgrel=1
pkgdesc="An automated scene switcher for OBS Studio"
arch=("i686" "x86_64" "aarch64")
url="https://obsproject.com/forum/resources/advanced-scene-switcher.395/"
license=("GPL2")
depends=("obs-studio" "libxss" "libxtst" "opencv" "procps")
makedepends=("cmake" "git")
source=(
  "$pkgname::git+https://github.com/WarmUpTill/SceneSwitcher.git#tag=$pkgver"
  "asio::git+https://github.com/chriskohlhoff/asio.git"
  "websocketpp::git+https://github.com/zaphoyd/websocketpp.git"
)
sha256sums=(
  "SKIP"
  "SKIP"
  "SKIP"
)

prepare() {
  cd $pkgname

  git config submodule.deps/asio.url $srcdir/asio
  git config submodule.deps/websocketpp.url $srcdir/websocketpp
  git submodule update
}

build() {
  cd $pkgname

  cmake -B build \
  -DCMAKE_INSTALL_PREFIX='/usr' \
  -DBUILD_OUT_OF_TREE=ON \
  -DLIBOBS_FRONTEND_INCLUDE_DIR='/usr/include/obs/' \
  -DLIBOBS_FRONTEND_API_LIB='/usr/lib/libobs-frontend-api.so'

  make -C build
}

package() {
  cd $pkgname

  make -C build DESTDIR="$pkgdir/" install
}