updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / freedcpp-svn-zhur / PKGBUILD
blobab28eb2ba342b5de8f2ad545f3714771cc5faebf
1 # Contributor: zhuravlik <ahmad200512@pochta.ru>
2 # Original Contributor: Alex Zinchenko mng123 @ gmail.com
3 pkgname=freedcpp-svn-zhur
4 pkgver=159
5 pkgrel=1
6 _mediapackver=0.0.3
7 pkgdesc="Advanced DC++ client based on LinuxDC++ source with exec patch"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/freedcpp/"
10 license=('GPL')
11 depends=('boost' 'bzip2' 'gtk2>=2.0' 'libglade' 'libgnome>=2.0' 'libnotify>=0.4.1' 'openssl')
12 makedepends=('pkgconfig' 'subversion' 'scons')
13 provides=(freedcpp)
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')
18 _svnmod="freedcpp"
19 _svntrunk="http://freedcpp.googlecode.com/svn/trunk/"
21 build() {
22     cd ${srcdir}
23     msg "Getting sources..."
24     
25     if [ -d ${_svnmod}/.svn ]; then
26         (cd ${_svnmod} && svn up -r ${pkgver})
27     else
28         svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
29         cd ${_svnmod}
30     fi
32     msg "SVN checkout done or server timeout"
33     msg "Starting make..."
35         cd "$srcdir"
36         patch -Np1 -i dcexec.patch
38     cd "$srcdir/$_svnmod"
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/