summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db0b606921625449ec85cb4e89ae38c635cc6b59 (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
# Maintainer: loooph <loooph@gmx.de>
pkgname=obs-shaderfilter-git
pkgver=2.3.2
pkgrel=1
pkgdesc="enables custom shaders for OBS sources"
arch=('x86_64')
url="https://github.com/exeldro/obs-shaderfilter/"
license=('Unlicense')
depends=(obs-studio)
makedepends=(git)
_basename=${pkgname%-git}
provides=("$_basename")
conflicts=("$_basename")
source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$_basename"
    git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cmake -B build -S "$_basename" -DCMAKE_INSTALL_PREFIX='/usr' -Wno-dev
    cmake --build build
}

package() {
    mkdir -p $pkgdir/usr/lib/obs-plugins/
    mkdir -p $pkgdir/usr/share/obs/obs-plugins/$_basename
    cp   $srcdir/build/rundir/RelWithDebInfo/obs-plugins/64bit/obs-shaderfilter.so $pkgdir/usr/lib/obs-plugins
    cp -R  $srcdir/build/rundir/RelWithDebInfo/data/obs-plugins/$_basename/data/*  $pkgdir/usr/share/obs/obs-plugins/$_basename
}