summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af65e0ba6589eb3bddc77567bec35a75ded56125 (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
# Maintainer: PancakeTAS <pancake@mgnet.work> 

_pkgname=obs-wlroots-screencopy
pkgname=${_pkgname}-git
pkgver=r26.a3f88c1
pkgrel=1
pkgdesc="OBS Studio plugin for efficient screen capture on wlroots-based wayland compositors"
arch=('x86_64')
license=('GPL3')
depends=('obs-studio')
makedepends=('make' 'gcc' 'wayland' 'wayland-protocols' 'wlr-protocols')
source=("git+https://github.com/PancakeTAS/$_pkgname")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"  
}

build() {
  cd "$srcdir/$_pkgname"
  make PROD=1
}

package() {
  cd "$pkgdir"
  install -Dm755 "$srcdir/$_pkgname/$_pkgname.so" usr/lib/obs-plugins/$_pkgname.so
}