summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8693209ae61de98fb6ba8499c9bf52c7725db94f (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
41
42
43
44
45
# Maintainer: Pellegrino Prevete <cGVsbGVncmlub3ByZXZldGVAZ21haWwuY29tCg== | base -d>
# Contributor: FabioLolix <fabio.loli@disroot.org>
# Contributor: cobaltspace <cobaltspace@protonmail.com>

_pkgname=OpenVtuber
pkgname=openvtuber
_pkgver=1.0-2019
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc='Real-time face and gaze analyzation via deep neural networks.'
arch=('any')
url='https://github.com/1996scarlet/OpenVtuber'
license=('GPL3')
depends=('npm' 'python' 'python-bidict' 'python-engineio' 'python-opencv'
         'python-socketio' 'python-tensorflow' 'python-websocket-client'
         'yarn')
optdepends=()
makedepends=()
source=("$url/archive/refs/tags/v$_pkgver.tar.gz")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$_pkgname-$_pkgver"
  cd NodeServer
  yarn
  cd ..
  make -C ./PythonClient/rcnn/
}

package() {
  cd "$srcdir/$_pkgname-$_pkgver"

  mkdir -p $pkgdir/lib/openvtuber
  mkdir -p $pkgdir/share/openvtuber

  cp -r NodeServer $pkgdir/lib/openvtuber
  cp -r PythonClient $pkgdir/lib/openvtuber

  install -m 644 vtuber.html $pkgdir/lib/openvtuber
  install -m 644 Readme.md $pkgdir/share/openvtuber/Readme.md

  chmod -R 644 $pkgdir/lib/openvtuber
}

# vim: ts=2 sw=2 et: