updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / passmate-git / PKGBUILD
blobf3d841d3058a4e49630d35454808055103f89f38
2 # by jungo; n10101010@gmail.com
4 pkgname=passmate-git
5 pkgver=20110722
6 pkgrel=1
7 pkgdesc="Password Manager Application"
8 url="https://github.com/dancingrobot84/passmate"
9 arch=('i686' 'x86_64')
10 license=('The BSD 3-Clause License')
11 depends=('pcre>=8.12' 'openssl>=1.0.0.d' 'qt>=4.7.2')
12 makedepends=('git' 'cmake')
13 conflicts=('passmate')
14 provides=('passmate-git')
16 _gitroot="git://github.com/dancingrobot84/passmate.git"
17 _gitname="passmate"
19 build() {
20     cd ${srcdir}
22     msg "Connecting to the git repository..."
23     if [ -d ${srcdir}/${_gitname} ]; then
24         cd ${_gitname}
25         git pull origin
26     else
27         git clone --depth 1 ${_gitroot}
28     fi
29     msg "GIT checkout done or server timeout"
31     rm -rf ${srcdir}/${_gitname}-build
32     cp -r  ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
33     cd ${srcdir}/${_gitname}-build
35     msg "Configuring with cmake"
36     mkdir bin
37     cd bin
38     cmake -DCMAKE_BUILD_TYPE=Release -DWITH_CLI=1 -DWITH_QT=1 ..
40     msg "Starting make..."
41     make || return 1
42     make DESTDIR=${pkgdir} install || return 1