updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / keepassx-svn / PKGBUILD
blob8d10be08be2ffb8126eab00b9a83d68827e5a5c9
1 # Contributor teddy_beer_maniac <teddy_beer_maniac@wp.pl>
3 pkgname=keepassx-svn
4 pkgver=200
5 pkgrel=1
6 pkgdesc="Cross platform password manager"
7 arch=('i686' 'x86_64')
8 url="http://www.keepassx.org/"
9 license=('GPL2')
10 depends=('qt')
11 source=()
12 provides=('keepassx')
13 conflicts=('keepassx')
14 md5sums=()
15 _svntrunk='https://keepassx.svn.sourceforge.net/svnroot/keepassx/trunk/'
16 _svnmod='keepassx'
18 build() {
19         cd $startdir/src
21         if [ -d $_svnmod/.svn ]; then
22                 (cd $_svnmod && svn up -r $pkgver)
23         else
24                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25         fi
27         msg "SVN checkout done or server timeout"
28         msg "Starting make..."
30         rm -r $startdir/src/$_svnmod-build
31         cp -r $_svnmod $_svnmod-build
32         cd $_svnmod-build
34         qmake PREFIX=/usr
35         make || return 1
36         make INSTALL_ROOT=$startdir/pkg install