1 # Contributor: zhuravlik <ahmad200512@pochta.ru>
2 # Original Contributor: Alex Zinchenko mng123 @ gmail.com
3 pkgname=freedcpp-svn-zhur
7 pkgdesc="Advanced DC++ client based on LinuxDC++ source with exec patch"
9 url="http://code.google.com/p/freedcpp/"
11 depends=('boost' 'bzip2' 'gtk2>=2.0' 'libglade' 'libgnome>=2.0' 'libnotify>=0.4.1' 'openssl')
12 makedepends=('pkgconfig' 'subversion' 'scons')
14 conflicts=('linuxdcpp' 'linuxdcpp-bzr' 'linuxdcpp-bzr-i18n')
15 source=("http://freedcpp.googlecode.com/files/mediapack.$_mediapackver.tar.bz2" example-theme.tar.bz2 dcexec.patch)
16 md5sums=('c4383ec870c55e816d1274c1468c2e32' '91ab046720f831b35be9b16e4c9eb4b6' 'ce65e64ba84b3f837e5a36bd9b1b7859')
19 _svntrunk="http://freedcpp.googlecode.com/svn/trunk/"
23 msg "Getting sources..."
25 if [ -d ${_svnmod}/.svn ]; then
26 (cd ${_svnmod} && svn up -r ${pkgver})
28 svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
32 msg "SVN checkout done or server timeout"
33 msg "Starting make..."
36 patch -Np1 -i dcexec.patch
39 # Generating build system
40 scons PREFIX=/usr LIBDIR=/usr/share || return 1
41 scons PREFIX=/usr LIBDIR=/usr/share install FAKE_ROOT=$startdir/pkg || return 1
42 scons DESTDIR=${pkgdir} install || return 1
44 cp -R ${srcdir}/mediapack/emoticons ${pkgdir}/usr/share/freedcpp/
45 cp -R ${srcdir}/mediapack/sounds ${pkgdir}/usr/share/freedcpp/
46 cp -R ${srcdir}/example-theme/themes ${pkgdir}/usr/share/freedcpp/