summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9178144e24a1941f66eae2577dd4334e1f34e6a5 (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
# Maintainer: Tobias Langendorf <junglerobba@jngl.one>
# Contributor: klardotsh <josh@klar.sh>
# Contributor: KafCoppelia <k740677208@gmail.com>

_pkgname=wlrobs
pkgname=${_pkgname}-hg
pkgver=r72.958a52be0f0f
pkgrel=3
pkgdesc="An obs-studio plugin that allows you to screen capture on wlroots based wayland compositors"
arch=('i686' 'x86_64')
provides=('wlrobs')
conflicts=(wlrobs)
url="https://hg.sr.ht/~scoopta/wlrobs"
license=('GPL-3.0-only')
depends=('obs-studio' 'wlroots')
makedepends=('wayland' 'mercurial' 'meson' 'ninja')
source=("hg+https://hg.sr.ht/~scoopta/${_pkgname}")
md5sums=('SKIP')
_hgrepo="hg"

pkgver() {
    cd ${_pkgname}
    printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
    cd ${_pkgname}
    export CFLAGS="-Wno-error"
    meson setup build -Dwerror=false
    ninja -C build
}

package() {
    cd ${_pkgname}
    mkdir -p ${pkgdir}/usr/lib/obs-plugins
    install -D -m 0644 build/libwlrobs.so ${pkgdir}/usr/lib/obs-plugins/wlrobs.so
}