updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / kdmfprintplugin-svn / PKGBUILD
blobd04b3b4ccefadd1f485b4c8f8a58b67d96f712fe
1 # Contributor: Nikolay Rysev <mad.f3ka@gmail.com>
2 pkgname=kdmfprintplugin-svn
3 pkgver=1227058
4 pkgrel=1
5 pkgdesc="KDM plugin which can use fingerprint to login"
6 arch=('i686' 'x86_64')
7 url="http://www.kde.org"
8 license=('GPL')
9 depends=('kdelibs' 'libfprint' 'pam_fprint' 'libusb' 'fprintd')
10 makedepends=('pkgconfig' 'cmake' 'automoc4' 'subversion' 'cmake')
11 install=kdmfprintplugin.install
12 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/base/kfingerprint/KDMFprintPlugin
13 _svnmod=kdmfprintplugin
15 build() {
16   cd $srcdir
17   if [ -d $_svnmod/.svn ]; then
18     (cd $_svnmod && svn up)
19   else
20     svn co $_svntrunk $_svnmod
21   fi
22   msg "SVN checkout done or server timeout"
23   msg "Starting make..."
24   mkdir $_svnmod-build
25   cd $_svnmod-build
26   cmake $srcdir/$_svnmod \
27     -DCMAKE_INSTALL_PREFIX=/usr
28   make
31 package() {
32   cd ${srcdir}/$_svnmod-build
33   make DESTDIR=${pkgdir} install
34   rm -rf $srcdir/$_svnmod-build