summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f9fd24cee558f34826a2dcef8b1c1a3babe27f9 (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: Kyle Sferrazza <kyle.sferrazza@gmail.com>

pkgname='openface-git'
_pkgname='openface'
pkgver='ac4ded4'
pkgrel=1
pkgdesc='Face recognition with deep neural networks.'
arch=('x86_64')
url='http://cmusatyalab.github.io/openface/'
license=('Apache')
depends=('graphicsmagick'
         'openssl'
         'libffi'
         'python'
         'python-pip'
         'python-numpy'
         'python-nose'
         'python-scipy'
         'python-pandas'
         'python-protobuf'
         'python-sslib'
         'wget'
         'zip'
         'python-dlib'
         'opencv')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=($_pkgname::'git+https://github.com/cmusatyalab/openface')
md5sums=('SKIP')

pkgver() {
  cd $_pkgname
  git rev-parse HEAD | cut -c 1-7
}

build() {
  cd $_pkgname
  ./models/get-models.sh

  mkdir -p build
  python setup.py install --root="$srcdir/$_pkgname/build/"
}

package() {
  cp -r $srcdir/$_pkgname/build/usr $pkgdir
}