summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ad7e003e5982d00efa2d64ffac29705d1363af9 (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
38
39
40
# Maintainer: RiverOnVenus <error@zhui.dev>
pkgname=matrix-webcam-git
pkgver=0.4.2.r0.g7cbc54c
pkgrel=1
pkgdesc="Take your video conference from within the matrix"
arch=('any')
url="https://github.com/joschuck/matrix-webcam"
license=('MIT')
depends=(
    'python'
    'python-numpy'
    'python-opencv'
    'python-mediapipe-bin'
    )
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=('matrix-webcam')
conflicts=('matrix-webcam')
source=("$pkgname"::"git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/-/.r/;s/-/./'
}

prepare(){
  cd $pkgname
  git clean -dfx
}

build() {
    cd $pkgname
    python -m build --wheel --no-isolation
}

package() {
    cd $pkgname
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}