summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 86f3b74655b56df9b201cce29ddbf2802a8c37b6 (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
# Maintainer: Katoitalia

pkgname=obs-transition-matrix-git
pkgver=master.r0.g15f096e
pkgrel=1
arch=(x86_64)
pkgdesc="Expands the basic OBS custom transition support to a scene to scene basis."
url="https://github.com/admshao/obs-transition-matrix"
license=('GPL2')
depends=("obs-studio" "qt5-base")
makedepends=("cmake" "git")
provides=("obs-transition-matrix")
source=("$pkgname::git+https://github.com/admshao/obs-transition-matrix.git"
        "git+https://github.com/obsproject/obs-studio.git")
md5sums=("SKIP" "SKIP")

pkgver() {
  cd $pkgname
  git describe --long --tags --all | sed -r "s/([^-]*-g)/r\1/;s/-/./g" | awk 'BEGIN { FS = "/"} {print $2}'
}

package() {
  cd $pkgname

  mkdir -p build; cd build

  cmake \
     -DLIBOBS_INCLUDE_DIR="$srcdir"/obs-studio/libobs \
     -DLIBOBS_LIB=/usr/lib/libobs.so \
     -DOBS_FRONTEND_LIB=/usr/lib/libobs-frontend-api.so \
     -DCMAKE_INSTALL_PREFIX="$pkgdir"/usr ..

  make -j$(($(nproc)+1))
  make install
}