updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / keepassx-svn / PKGBUILD
blob10b70a0f0e38435bbda31fef24d94920f1a7f258
1 # Maintainer:   Lucky <archlinux@builds.lucky.li>
2 # Contributor:  Alexander Fehr <pizzapunk gmail com>
3 # Contributor:  Philipp Giebel <arch@ambience-design.net>
4 # Contributor:  teddy_beer_maniac <teddy_beer_maniac@wp.pl>
6 pkgname=keepassx-svn
7 _pkgname=keepassx
8 #_pkgname="${pkgname%-*}"
9 pkgver=386
10 pkgrel=1
11 pkgdesc="Cross platform password manager"
12 url="http://www.keepassx.org"
13 license=("GPL2")
14 arch=("i686" "x86_64")
15 depends=("qt" "libxtst")
16 provides=("${_pkgname}")
17 conflicts=("${_pkgname}")
19 _svntrunk="https://${_pkgname}.svn.sourceforge.net/svnroot/${_pkgname}/trunk/"
20 _svnmod="${_pkgname}"
22 build() {
23   cd "${srcdir}"
25   #SVN {{{
26   msg "Connecting to SVN server..."
27   if [ -d "${_svnmod}" ]; then
28     (cd "${_svnmod}" && svn update -r "385")
29     msg "The local repository was updated."
30   else
31     svn co "${_svntrunk}" "${_svnmod}" -r "385"
32   fi
33   msg "SVN checkout done or server timeout."
34   cd "${srcdir}"
35   if [ -d "${_svnmod}-build" ]; then
36     rm -rf "${_svnmod}-build"
37   fi
38   cp -rf "${_svnmod}" "${_svnmod}-build"
39   cd "${_svnmod}-build"
40   #}}}
42   cd "${srcdir}/${_pkgname}-build"
44   qmake PREFIX=/usr
45   make
48 package() {
49   cd "${srcdir}/${_pkgname}-build"
51   make INSTALL_ROOT="${pkgdir}" install