1 # Contributor: Kosenko Roman <madkite@gmail.com>
2 pkgname=subcommander2-svn
4 url='http://subcommander.tigris.org'
5 _svntrunk="${url}/svn/subcommander/trunk/"
7 true && pkgrel=$(svn info --username 'guest' --password 'dummy' "${_svntrunk}" | awk '/Revision/ {print $2}')
8 pkgdesc='A GUI frontend for subversion (based on Qt4)'
10 depends=('subversion>=1.4.4' 'neon' 'openssl' 'db' 'apr' 'apr-util' 'boost' 'qt4>=4.3.0' 'gettext' 'krb5-crypto' 'zlib')
11 makedepends=('gcc' 'gawk' 'perl' 'python' 'ruby')
12 arch=('i686' 'x86_64')
13 source=(subcommander2-patches.zip)
16 conflicts=('subcommander')
18 _svnsrc="${SRCDEST}/${pkgname}-${pkgver}.tar.gz"
22 [ -d ${pkgname} ] && rm -rf ${pkgname}
23 [ -f ${_svnsrc} ] && tar -xzf ${_svnsrc}
24 msg "Connecting to ${_svntrunk} SVN server..."
25 if [ -d ${pkgname}/.svn ]; then
28 svn co --username 'guest' --password 'dummy' "${_svntrunk}" ${pkgname}
30 msg 'SVN checkout done or server timeout'
31 tar -czf ${_svnsrc} ${pkgname}
33 msg 'Starting make...'
34 for i in ../*.patch; do
35 patch -i $i -p1 || return $?
39 ./configure --prefix=/usr --enable-nls --with-qt=/usr || return $?
40 cp sublib/settings/SettingsWidget.* sublib/
42 make prefix=${startdir}/pkg/usr install || return $?