updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ppasskeeper-git / PKGBUILD
blob57ab04eb7846caa729c7afc1bebd84149fedade4
1 # Maintainer:  Denis Martinez <deuns.martinez AT gmail.com>
2 # Contributor:  Martin Peres <martin.peres AT ensi-bourges.fr>
4 pkgname=ppasskeeper-git
5 pkgver=20100816
6 pkgrel=1
7 pkgdesc="PPasskeeper is a library that means to create a portable password-storing interface."
8 url="http://ppasskeeper.mupuf.org/"
9 license=('LGPL')
10 depends=('gcc-libs')
11 makedepends=('subversion')
12 optdepends=('qt: PPassKeeper GUI and Qt plugin'
13             'gtk2: GTK2 plugin'
14             'gnome-keyring: GNOME plugin'
15             'kdebase-runtime: KDE plugin')
16 options=('libtool')
17 arch=('i686' 'x86_64')
18 install=
19 source=()
20 md5sums=()
22 _gitroot="git://gitorious.org/ppasskeeper/ppasskeeper.git"
23 _gitname="ppasskeeper"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot $_gitname
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "$srcdir/$_gitname-build"
40   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43   mkdir -p build && cd build
44   cmake -DCMAKE_INSTALL_PREFIX=/usr -DPPK_ELEKTRA=OFF .. || return 1
45   make || return 1
47   make DESTDIR="$pkgdir" install || return 1