pkgname=libkface4 _pkgname=libkface pkgver=15.08.3 pkgrel=1 pkgdesc="A Qt/C++ wrapper around LibFace library to perform face recognition and detection over pictures" url="https://projects.kde.org/projects/kde/kdegraphics/libs/libkface" arch=(x86_64) license=(GPL LGPL FDL) depends=(kdelibs opencv) makedepends=(cmake automoc4) replaces=('libkface<15.11') conflicts=('libkface<15.11') install=$pkgname.install source=("http://download.kde.org/stable/applications/$pkgver/src/$_pkgname-$pkgver.tar.xz") sha1sums=('cc65ff362ffad872917aac0a184c6903a90b3cbe') prepare() { mkdir -p build } build() { cd build cmake ../$_pkgname-$pkgver \ -DCMAKE_BUILD_TYPE=Release \ -DKDE4_BUILD_TESTS=OFF \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd build make DESTDIR="$pkgdir" install }