Commit d2d4641e authored by Anke's avatar Anke
Browse files

kadu builds again, updated to 0.9.1

parent e3041bfe
#
# KDE SC Packages for Chakra, part of chakra-project.org
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
......@@ -8,53 +8,28 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=kadu
pkgver=0.6.5.4
pkgrel=2
pkgver=0.9.1
pkgrel=1
pkgdesc="A Qt-based Gadu-Gadu client"
arch=('i686' 'x86_64')
url="http://www.kadu.net/"
license=('GPL')
depends=('qt' 'libgadu' 'hicolor-icon-theme')
makedepends=('cmake' 'aspell' 'libao' 'libsndfile' 'libxtst' 'curl' 'xmms' 'qca' 'libxss')
depends=('libgadu' 'libxss' 'aspell' 'phonon' 'qca-ossl' 'libidn')
makedepends=('cmake' 'libao' 'libsndfile' 'libxtst' 'curl')
conflicts=('kadu-svn')
install=$pkgname.install
source=(http://www.kadu.net/download/stable/$pkgname-$pkgver.tar.bz2
mod-weather.diff)
md5sums=('97cb72c0ab4b5cf897bfbfc3b5ac0379'
'e35a10647a48d3cff611ae6b20ebef07')
_static="sound_.+ icons_.+ emoticons_.+"
_disable="module_macosx_docking module_growl_notify module_dshow_sound module_win32_sound module_itunes_mediaplayer module_winamp_mediaplayer module_xmms_mediaplayer"
source=(http://www.kadu.net/download/stable/$pkgname-$pkgver.tar.bz2)
md5sums=('99cb6e9d4acea6dbb15ff98dfe44dff9')
build() {
cd $srcdir/kadu
# kadu.net tends to get sluggish
sed -r -i 's/-T [0-9]+/-T 60/g' varia/scripts/autodownload
sed -r -i 's/(^[0-9a-z_]+=)[yn]$/\1m/' .config
for m in $_static; do
sed -r -i "s/^($m)=m/\1=y/" .config || return 1
done
for m in $_disable; do
sed -r -i "s/^($m)=m/\1=n/" .config || return 1
done
for p in $startdir/src/mod-*.diff; do
m=`basename $p .diff | sed 's/mod-\(.*\)/\1/'`
mkdir -p modules/patches/$m
cp $p modules/patches/$m
done
sed 's#set (LIBDIR ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})#set (LIBDIR ${CMAKE_INSTALL_PREFIX}/lib)#' -i CMakeLists.txt
sed 's#set (MODULEDIR lib${LIB_SUFFIX}/kadu/modules)#set (MODULEDIR lib/kadu/modules)#' -i CMakeLists.txt
sed -i 's#module_phonon_sound=m#module_phonon_sound=n#' .config
cd $srcdir/kadu-$pkgver
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make || return 1
make DESTDIR=$pkgdir install || return 1
make
}
package() {
cd $srcdir/kadu-$pkgver
make DESTDIR=$pkgdir install
rm -rf $pkgdir/usr/{lib,include}/{libgadu*,pkgconfig}
rm -rf $pkgdir/usr/share/kadu/{HISTORY,README}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment