updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / libface-svn / PKGBUILD
blobf2c766923a96ffa430409951f711bee8c0325eab
1 # Contributor:  Flexoid <flexoid@gmail.com>
2 # Contributor:  Dany Martineau <dany.luc.martineau at gmail.com>
3 # Maintainer:   Chris Heien <chris.h.heien@gmail.com>
5 pkgname=libface-svn
6 pkgver=271
7 pkgrel=1
8 pkgdesc="Face recognition library. SVN Version"
9 arch=('i686' 'x86_64')
10 url="http://libface.sourceforge.net/"
11 license=('GPL')
12 depends=('opencv>=2.1')
13 makedepends=('subversion' 'cmake' 'pkgconfig')
14 conflicts=('libface')
15 provides=('libface')
17 _svntrunk='https://libface.svn.sourceforge.net/svnroot/libface/trunk'
18 _svnmod=libface
20 build() {
21   cd $srcdir
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up)
24   else
25     svn co $_svntrunk $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
30   if [[ -d ${srcdir}/${_svnmod}-build ]]; then
31     msg "Cleaning the previous build directory..."
32     rm -rf ${srcdir}/${_svnmod}-build
33   fi 
35   mkdir $_svnmod-build
36   cd $_svnmod-build
37   cmake $startdir/src/$_svnmod -DCMAKE_BUILD_TYPE=Release \
38                 -DCMAKE_SKIP_RPATH=ON \
39                 -DCMAKE_INSTALL_PREFIX=/usr \
40                 -DLIB_INSTALL_DIR=lib
41   make
44 package() {
45   cd ${srcdir}/$_svnmod-build
46   make DESTDIR=${pkgdir} install
48