updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pam-face-authentication-noverbose / PKGBUILD
blobbf32903064cba0a1cda119c3b4b11059dcafa88e
1 # Contributor: Carlos RH Ruiz <ruizh.cj@gmail.com>
2 pkgname=pam-face-authentication-noverbose
3 _pkgname=pam-face-authentication
4 pkgver=0.3
5 pkgrel=5
6 pkgdesc="PAM face auth. Removed too much verbosity"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/pam-face-authentication"
9 license=('GPL')
10 #groups=()
11 depends=('opencv>=2.3' 'qt')
12 makedepends=('cmake')
13 #provides=()
14 conflicts=('pam-face-authentication' 'pam-face-authentication-svn')
15 #replaces=()
16 #backup=()
17 #install=
18 source=('http://pam-face-authentication.googlecode.com/files/pam-face-authentication-0.3.tar.gz' 'pam_face_authentication.cpp.diff')
19 #noextract=()
20 sha256sums=('24cec1adb649a809fba4a131111df0de5701d8b0ee0b3295c6a80d97f6ddec64' 'd5a310c1c8032d83aa1d9c4cd212491cc3e30a51707d88c75bd420e7300acffd')
22 build() {
23   cd "$srcdir"/${_pkgname}-$pkgver
24   
25   # Fix for OpenCV 2.3
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
29   
30   # Remove unwanted verbosity
31   patch src/pam_face_authentication.cpp $srcdir/pam_face_authentication.cpp.diff
32   
33   cmake -D CMAKE_INSTALL_PREFIX=/usr . || return 1
36 package() {
37   cd ${srcdir}/${_pkgname}-$pkgver
38   make || return 1
39   make DESTDIR="$pkgdir/" install || return 1