summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c6a38cec05e31e6206523d8861f2b67fc735a31 (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=v1.2.r21.g9b40d37
pkgrel=1
pkgdesc="enables custom shaders for OBS sources"
arch=('x86_64')
url="https://github.com/Oncorporation/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() {
    cd $_basename
    CFLAGS="$CFLAGS -O2 -I /usr/include/obs"
    LDFLAGS="$LDFLAGS -shared -fpic  -lobs"
    cc ${CFLAGS} ${LDFLAGS} -o ${_basename}.so src/*.c
}

package() {
    mkdir -p $pkgdir/usr/lib/obs-plugins
    install -t $pkgdir/usr/lib/obs-plugins $srcdir/$_basename/${_basename}.so
}