Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Jaroslaw Swierczynski <[email protected]>
- pkgname=kadu
- pkgver=0.6.5.3
- pkgrel=1
- pkgdesc="A Qt-based Gadu-Gadu client"
- arch=('i686' 'x86_64')
- url="http://www.kadu.net/"
- license=('GPL')
- depends=('qt' 'libgadu')
- makedepends=('cmake' 'aspell' 'libao' 'libsndfile' 'libxtst' 'curl' 'xmms2')
- conflicts=('kadu-svn')
- install=$pkgname.install
- source=(http://www.kadu.net/download/stable/$pkgname-$pkgver.tar.bz2)
- _static="sound_.+ icons_.+ emoticons_.+"
- _disable="module_macosx_docking module_growl_notify module_dshow_sound module_win32_sound module_itunes_mediaplayer"
- md5sums=('7914d941020b0fa092748ffe0295174f')
- build() {
- cd $startdir/src/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
- cmake . -DCMAKE_INSTALL_PREFIX=/usr
- make || return 1
- make DESTDIR=$startdir/pkg install || return 1
- rm -rf $startdir/pkg/usr/{lib,include}/{libgadu*,pkgconfig}
- rm -rf $startdir/pkg/usr/share/kadu/{HISTORY,README}
- }
Advertisement
Add Comment
Please, Sign In to add comment