summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8258018756e8f142b6af0095ff1130e347225f6d (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
46
# Maintainer: Pellegrino Prevete <cGVsbGVncmlub3ByZXZldGVAZ21haWwuY29tCg== | base -d>

_pkgname=openvtuber
pkgname=$_pkgname-git
pkgver=v1.0+2019+27+g970229d
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' 'opencv' 'python' 'python-bidict' 'python-engineio'
         'python-socketio' 'python-tensorflow' 'python-websocket-client'
         'tensorboard' 'yarn')
provides=($_pkgname)
conflicts=($_pkgname)
optdepends=()
makedepends=('git')
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname
  git describe --tags | sed 's/-/+/g'
}

build() {
  cd "${pkgname}"
  cd NodeServer
  yarn
}

package() {

  mkdir -p $pkgdir/usr/lib/openvtuber
  mkdir -p $pkgdir/usr/share/openvtuber
  cp -r $pkgname/* $pkgdir/usr/lib/openvtuber
  chmod -R 755 $pkgdir
  chmod 755 $pkgdir/usr/lib/openvtuber

  cd $pkgname

  install -m 644 LICENSE $pkgdir/usr/share/openvtuber
  install -m 644 Readme.md $pkgdir/usr/share/openvtuber/Readme.md
}

# vim: ts=2 sw=2 et: