1 # Contributor: Borislav Gerassimov (slimmer) <borislavba (at) gmail.com>
5 pkgdesc="Free open-source multiprotocol (ICQ, Jabber/GTalk/Ya.Online, LiveJournal.com, Mail.Ru, IRC) instant messenger"
9 depends=('qt' 'libxss' 'openssl' 'libidn' 'gnutls')
10 makedepends=('gcc' 'make' 'cmake' 'pkgconfig')
11 conflicts=('qutim' 'qutim-icq' 'qutim-svn-archangel' 'qutim-plugin-yandexnarod')
12 provides=('qutim-plugin-yandexnarod')
13 source=(http://repository.slacky.eu/slackware-13.0/network/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2)
14 md5sums=('a0cf5b7bc1a8fd9e0a6a712d6f1b98e7')
16 # Remove the plugins you don't need in the next line. Keep them separated with spaces.
17 # Available plugins: histman icq irc jabber mrim plugman vkontakte yandexnarod
18 _plugins="histman icq irc jabber mrim plugman vkontakte yandexnarod"
21 cd ${srcdir}/${pkgname}-${pkgver}
23 msg2 "Building core..."
24 sed "s/TARGET_LINK_LIBRARIES (qutim/TARGET_LINK_LIBRARIES (qutim\nX11/" -i CMakeLists.txt
25 cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release || return 1
26 make DESTDIR=${pkgdir} install || return 1
28 for plug in ${_plugins}
30 msg2 "Building ${plug} plugin"
31 cd ${srcdir}/${pkgname}-${pkgver}/plugins/${plug}
34 cmake . -DGNUTLS=1 -DZLib=1 -DCMAKE_INSTALL_PREFIX=/usr \
35 -DQUTIM_INCLUDE_DIRS=${srcdir}/${pkgname}-${pkgver}/include || return 1 ;
36 make DESTDIR=${pkgdir} install || return 1 ;;
38 cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1 ;
40 install -Dm 644 lib${plug}.so "${pkgdir}/usr/lib/${pkgname}/lib${plug}.so" || return 1 ;;
41 histman|irc|vkontakte|yandexnarod)
42 echo "INSTALLS += target" >> ${plug}.pro || return 1;
43 echo "unix:target.path += /usr/lib/qutim" >> ${plug}.pro || return 1 ;
45 make INSTALL_ROOT=${pkgdir} install || return 1 ;;
48 make INSTALL_ROOT=${pkgdir} install || return 1 ;;