summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb9d0001a66ab9325cd6b07b8cfd56167e18fdb4 (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
# Maintainer: Tobias Langendorf <junglerobba@jngl.one>
# Contributor: klardotsh <josh@klar.sh>
_pkgname=wlrobs
pkgname=${_pkgname}-hg
pkgver=r38.8345bf985e39
pkgrel=1
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=('GPL3')
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}"
	meson build
	ninja -C build
}

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