updated on Fri Jan 20 16:18:17 UTC 2012
[aur-mirror.git] / eiskaltdcpp-git / PKGBUILD
blobd339cd4bd5eee4cc1739215efff2697bad48e9c5
1 # Contributor: dhamp <dhamp@ya.ru>
3 _name=eiskaltdcpp
4 pkgbase=$_name-git
5 pkgname=$_name-git
6 true && pkgname=('eiskaltdcpp-gtk-git' 'eiskaltdcpp-qt-git' 'eiskaltdcpp-daemon-git' 'eiskaltdcpp-core-git' 'eiskaltdcpp-data-git')
7 pkgver=20111227
8 pkgrel=1
9 license=('GPL3')
10 arch=('i686' 'x86_64')
11 url="http://code.google.com/p/eiskaltdc/"
12 conflicts=('eiskaltdcpp')
13 options=(!emptydirs)
14 _gitroot="git://github.com/negativ/eiskaltdcpp.git"
15 _gitname=$_name
16 build() {
17         cd $srcdir
18         if [ -d $_gitname ]; then
19             cd $_gitname && git pull origin
20             msg "The local files are updated."
21         else
22             git clone --depth=1 $_gitroot $_gitname
23         fi
24         msg "GIT checkout done or server timeout"
25         msg "Starting make..."
26         rm -rf $srcdir/build
27         mkdir $srcdir/build
28         cd $srcdir/build
29         cmake ../$_gitname -DENABLE_STACKTRACE=ON -DCMAKE_INSTALL_PREFIX=/usr -DUSE_MINIUPNP=ON -DLOCAL_MINIUPNP=ON -DPERL_REGEX=ON -DLOCAL_BOOST=ON -DLUA_SCRIPT=ON -DWITH_LUASCRIPTS=ON -DWITH_DHT=ON -DUSE_QT=OFF
30         #make
33 #package_eiskaltdcpp-git() {
34     #depends=('qt' 'gtk2' 'libnotify' 'lua' 'libidn' 'pcre' 'bzip2')
35     #optdepends=('aspell: spellchecking'
36                 #'qtscriptgenerator: need for qtscript'
37                 #'php: needed for some optionŠ°l scripts')
38     #pkgdesc="DC and ADC client based on dcpp core"
39     #install=$_name.install
40     #cd $srcdir/build
41     #cmake ../$_gitname  -DUSE_JS=ON -DUSE_QT=ON -DUSE_GTK=ON -DNO_UI_DAEMON=ON
42     #make DESTDIR=$pkgdir install
45 package_eiskaltdcpp-gtk-git() {
46     depends=('gtk2' 'libnotify' 'desktop-file-utils' 'eiskaltdcpp-core-git' 'eiskaltdcpp-data-git')
47     pkgdesc="EiskaltDC++: Gtk2-based DC and ADC client based on dcpp core"
48     conflicts=('eiskaltdcpp-gtk' 'eiskaltdcpp')
49     provides=('eiskaltdcpp-gtk')
50     install=$_name.install
51     cd $srcdir/build
52     cmake ../$_gitname -DUSE_GTK=ON
53     make -C cmake
54     make -C eiskaltdcpp-gtk DESTDIR=$pkgdir install
57 package_eiskaltdcpp-qt-git() {
58     depends=('qt' 'eiskaltdcpp-core-git' 'eiskaltdcpp-data-git')
59     optdepends=('aspell: spellchecking'
60                 'qtscriptgenerator: need for qtscript')
61     pkgdesc="EiskaltDC++: Qt4-based DC and ADC client based on dcpp core"
62     conflicts=('eiskaltdcpp-qt' 'eiskaltdcpp')
63     provides=('eiskaltdcpp-qt')
64     install=$_name.install
65     cd $srcdir/build
66     cmake ../$_gitname  -DUSE_JS=ON -DUSE_QT=ON
67     make translations_qt
68     make -C eiskaltdcpp-qt DESTDIR=$pkgdir install
71 package_eiskaltdcpp-cli-git() {
72     depends=('eiskaltdcpp-daemon-git' 'eiskaltdcpp-data-git')
73     pkgdesc="EiskaltDC++ cli interface for daemon with xmlrpc"
74     cd $srcdir/build
75     make -C eiskaltdcpp-cli DESTDIR=$pkgdir install clean
77 package_eiskaltdcpp-daemon-git() {
78     depends=('eiskaltdcpp-core-git' 'eiskaltdcpp-data-git' 'gcc-libs')
79     pkgdesc="EiskaltDC++ Daemon"
80     conflicts=('eiskaltdcpp-daemon' 'eiskaltdcpp')
81     provides=('eiskaltdcpp-daemon')
82     cd $srcdir/build
83     cmake ../$_gitname -DNO_UI_DAEMON=ON -DJSONRPC_DAEMON=ON
84     make -C eiskaltdcpp-daemon DESTDIR=$pkgdir install
87 package_eiskaltdcpp-core-git() {
88     depends=('bzip2' 'openssl' 'lua' 'libidn' 'pcre')
89     pkgdesc="EiskaltDC++ Core"
90     conflicts=('eiskaltdcpp-core' 'eiskaltdcpp')
91     provides=('eiskaltdcpp-core')
92     cd $srcdir/build
93     make -C cmake
94     make -C dcpp DESTDIR=$pkgdir install
97 package_eiskaltdcpp-data-git() {
98     arch=('any')
99     depends=('sh' 'bash' 'hicolor-icon-theme')
100     optdepends=('php: needed for some optionŠ°l scripts')
101     conflicts=('eiskaltdcpp-data' 'eiskaltdcpp')
102     provides=('eiskaltdcpp-data')
103     install=$_name.install
104     pkgdesc="EiskaltDC++ Data files"
105     cd $srcdir/build
106     make -C data DESTDIR=$pkgdir install
108 pkgdesc="DC and ADC client based on dcpp core"
109 depends=('qt' 'libnotify' 'bzip2' 'pcre' 'lua' 'libidn' 'gtk2')