blob: 2cf401e5b173f70f239d982213bb051789c962aa (
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: Dylan Turner dylantdmt@gmail.com
pkgname=bgrm-git
pkgver=21.1231
pkgrel=3
epoch=
pkgdesc="A utility for removing backgrounds from a webcam and returning a virtual webcam for use in applications like Teams, OBS, etc"
arch=('any')
url="https://www.github.com/blueOkiris/bgrm"
license=('GPL3')
makedepends=('git' 'python' 'python-pip' 'v4l2loopback-dkms')
source=('git+https://github.com/blueOkiris/bgrm.git')
md5sums=('SKIP')
install='bgrm.install'
package() {
echo "Installing to $pkgdir/opt/bgrm."
mkdir -p "$pkgdir/opt/bgrm"
cp bgrm/bgrm.sh "$pkgdir/opt/bgrm"
cp bgrm/LICENSE "$pkgdir/opt/bgrm"
cp bgrm/README.md "$pkgdir/opt/bgrm"
cp -r bgrm/bgrm/ "$pkgdir/opt/bgrm"
cp -r bgrm/scripts "$pkgdir/opt/bgrm"
mkdir -p "$pkgdir/usr/bin"
echo "Creating link in $pkgdir/usr/bin"
cat <<EOF > "$pkgdir/usr/bin/bgrm"
#!/bin/bash
cd /opt/bgrm
source bgrm.sh
EOF
chmod +x "$pkgdir/usr/bin/bgrm"
}
|