summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f792b9efc90f93ec495c96a45453014e7561a9b (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: Shayne Hartford <shayneehartford@gmail.com>

pkgname=mon2cam-git
_pkgname=Mon2Cam
pkgver=r32.8117a97
pkgrel=1
pkgdesc="Workaround for multi-monitor Discord screensharing"
arch=('any')
url="https://github.com/ShayBox/$_pkgname"
license=('MIT')
depends=(
    'xorg-xrandr'
    'ffmpeg'
    'v4l2loopback-dkms'
)
makedepends=('git')
provides=('mon2cam')
source=("git+$url.git")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/$_pkgname"
  
  install -Dm755 $_pkgname.sh "$pkgdir/usr/bin/$_pkgname"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}