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