updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / qpamat-git / PKGBUILD
blob9148770f6961c6ac891fec6e6abb57063cfaf193
1 # Contributor: Bernhard Walle <bernhard@bwalle.de>
2 # AUR Category: x11
4 pkgname=qpamat-git
5 pkgver=20100809
6 pkgrel=1
7 pkgdesc="Password manager in Qt - Mercurial version"
8 url="http://qpamat.berlios.de"
9 license="GPL"
10 depends=(qt)
11 provides=('qpamat')
12 replaces=('qpamat')
13 makedepends=('git')
14 arch=('i686' 'x86_64')
15 source=()
16 md5sums=()
18 _gitroot="git://git.berlios.de/qpamat"
19 _gitname="qpamat"
21 build() {
22   cd $srcdir
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     echo $_gitroot $_gitname
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   mkdir build
41   cd build
42   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
43   make || return 1
44   make DESTDIR=$pkgdir install