Guest User

cojack

a guest
Sep 23rd, 2009
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.38 KB | None | 0 0
  1. # Contributor: Jaroslaw Swierczynski <[email protected]>
  2.  
  3. pkgname=kadu
  4. pkgver=0.6.5.3
  5. pkgrel=1
  6. pkgdesc="A Qt-based Gadu-Gadu client"
  7. arch=('i686' 'x86_64')
  8. url="http://www.kadu.net/"
  9. license=('GPL')
  10. depends=('qt' 'libgadu')
  11. makedepends=('cmake' 'aspell' 'libao' 'libsndfile' 'libxtst' 'curl' 'xmms2')
  12. conflicts=('kadu-svn')
  13. install=$pkgname.install
  14. source=(http://www.kadu.net/download/stable/$pkgname-$pkgver.tar.bz2)
  15.  
  16. _static="sound_.+ icons_.+ emoticons_.+"
  17. _disable="module_macosx_docking module_growl_notify module_dshow_sound module_win32_sound module_itunes_mediaplayer"
  18. md5sums=('7914d941020b0fa092748ffe0295174f')
  19.  
  20. build() {
  21.   cd $startdir/src/kadu
  22.  
  23.   # kadu.net tends to get sluggish
  24.   sed -r -i 's/-T [0-9]+/-T 60/g' varia/scripts/autodownload
  25.  
  26.   sed -r -i 's/(^[0-9a-z_]+=)[yn]$/\1m/' .config
  27.   for m in $_static; do
  28.     sed -r -i "s/^($m)=m/\1=y/" .config || return 1
  29.   done
  30.   for m in $_disable; do
  31.     sed -r -i "s/^($m)=m/\1=n/" .config || return 1
  32.   done
  33.  
  34.   for p in $startdir/src/mod-*.diff; do
  35.     m=`basename $p .diff | sed 's/mod-\(.*\)/\1/'`
  36.     mkdir -p modules/patches/$m
  37.     cp $p modules/patches/$m
  38.   done
  39.  
  40.   cmake . -DCMAKE_INSTALL_PREFIX=/usr
  41.   make || return 1
  42.   make DESTDIR=$startdir/pkg install || return 1
  43.  
  44.   rm -rf $startdir/pkg/usr/{lib,include}/{libgadu*,pkgconfig}
  45.   rm -rf $startdir/pkg/usr/share/kadu/{HISTORY,README}
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment