summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7e4620409e87706571f24211eeb275f893f7a514 (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
# Maintainer: Jingbei Li <i@jingbei.li>

pkgname=openface
_pkgname=OpenFace
pkgver=2.2.0
pkgrel=2
pkgdesc="A state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation"
arch=('x86_64')
url="https://github.com/TadasBaltrusaitis/${_pkgname}"
license=('custom')
depends=('boost-libs' 'dlib' 'gcc-libs' 'glibc' 'openblas' 'opencv')
makedepends=('cmake' 'qt6-base' 'tbb' 'wget' 'boost')
source=("${url}/archive/refs/tags/${_pkgname}_${pkgver}.tar.gz")
sha256sums=('928e6346bcff41393393a364df99bf09c3410fab85b569f2023e3224d2a1981a')

build() {
  cd "${srcdir}/${_pkgname}-${_pkgname}_${pkgver}"

  bash download_models.sh

  cmake -B build \
    -DCMAKE_BUILD_TYPE=RELEASE \
    -DCMAKE_INSTALL_PREFIX=/opt/${pkgname}
#    -DBUILD_SHARED_LIBS=ON \
#    -S "$srcdir/$pkgname-$pkgver" \
#    -DMARCH_NATIVE=ON \
#    -Wno-dev
  make -C build
}

package() {
  cd "${srcdir}/${_pkgname}-${_pkgname}_${pkgver}"

  make -C build DESTDIR="${pkgdir}" install

  install -Dm644 Copyright.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: