updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / pam_fprint-git / PKGBUILD
blobc21de743f0bde55a21dc86f23352fed9141b7993
1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
2 # Contributor: Ondřej Konečný <konecny.ondrej@seznam.cz>
4 pkgname=pam_fprint-git
5 pkgver=20100509
6 pkgrel=1
7 pkgdesc="Git repo of libfprint"
8 url="http://reactivated.net/fprint/wiki/Pam_fprint"
9 arch=('i686' 'x86_64')
10 license=('LGPL')
11 groups=('fprint')
12 depends=('libusb1' 'imagemagick' 'libtool')
13 conflicts=('pam_frint' 'pam_frint-nightly' 'pam_fprint-unstable')
14 provides=('pam_frint' 'pam_frint-nightly' 'pam_fprint-unstable')
15 makedepends=('git')
17 _gitroot="git://github.com/dsd/pam_fprint.git"
18 _gitname="pam_fprint"
20 build() {
21   cd ${srcdir}
22   msg "Connecting to github.com GIT server...."
24   if [ -d ${srcdir}/$_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   git clone $_gitname $_gitname-build
35   cd ${srcdir}/$_gitname-build
36   
37   ./autogen.sh --prefix=/usr
39   ./configure --prefix=/usr
41   make || return 1
42   make DESTDIR="$pkgdir" install