2015-04-13 07:24:28 +08:00
|
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libkface
|
|
|
|
# Include global configuration
|
|
|
|
source ../kdeapps.conf
|
|
|
|
|
|
|
|
pkgname=libkface
|
|
|
|
pkgver=${_kdever}
|
2016-02-16 07:10:22 +08:00
|
|
|
pkgrel=1
|
2015-04-13 07:24:28 +08:00
|
|
|
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')
|
2015-12-05 07:26:22 +08:00
|
|
|
depends=(qt5-base opencv)
|
|
|
|
makedepends=(extra-cmake-modules)
|
2015-04-13 07:24:28 +08:00
|
|
|
install=${pkgname}.install
|
2015-05-14 05:17:22 +08:00
|
|
|
options=('docs' 'debug')
|
2016-01-21 10:24:45 +08:00
|
|
|
source=("$_mirror/${pkgname}-$_kdever.tar.xz" "opencv-3.1-support.patch")
|
|
|
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d " " -f1`
|
|
|
|
'b778be1f87897205bc4ea22ae94177a4aa4dcf9ae25b74a272818eed1049a779')
|
2015-04-13 07:24:28 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir build
|
2016-01-21 10:24:45 +08:00
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
patch -Np1 -i ../opencv-3.1-support.patch
|
2015-04-13 07:24:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
2016-01-21 10:24:45 +08:00
|
|
|
cmake_kf5 ../${pkgname}-${pkgver} -DENABLE_OPENCV3=On
|
2015-04-13 07:24:28 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
2015-12-05 07:26:22 +08:00
|
|
|
make DESTDIR="$pkgdir" install
|
2015-04-13 07:24:28 +08:00
|
|
|
}
|