1 # Contributor: Carlos RH Ruiz <ruizh.cj@gmail.com>
2 pkgname=pam-face-authentication-noverbose
3 _pkgname=pam-face-authentication
6 pkgdesc="PAM face auth. Removed too much verbosity"
8 url="http://code.google.com/p/pam-face-authentication"
11 depends=('opencv>=2.3' 'qt')
14 conflicts=('pam-face-authentication' 'pam-face-authentication-svn')
18 source=('http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz' 'pam_face_authentication.cpp.diff')
20 sha256sums=('24cec1adb649a809fba4a131111df0de5701d8b0ee0b3295c6a80d97f6ddec64' 'd5a310c1c8032d83aa1d9c4cd212491cc3e30a51707d88c75bd420e7300acffd')
23 cd "$srcdir"/${_pkgname}-$pkgver
26 rm cmake/modules/FindOpenCV.cmake
27 cp /usr/share/opencv/OpenCVConfig.cmake cmake/modules
28 sed -i 's/OPENCV_LIBRARIES/OpenCV_LIBS/g' CMakeLists.txt
30 # Remove unwanted verbosity
31 patch src/pam_face_authentication.cpp $srcdir/pam_face_authentication.cpp.diff
33 cmake -D CMAKE_INSTALL_PREFIX=/usr . || return 1
37 cd ${srcdir}/${_pkgname}-$pkgver
39 make DESTDIR="$pkgdir/" install || return 1