Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

archlinux-google-talk-pkgbuild

By: a guest on Mar 31st, 2011  |  syntax: Bash  |  size: 2.53 KB  |  views: 272  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Dominik Mayer <dominik.mayer@gmail.com>
  2. pkgname=google-talkplugin
  3. pkgver=1.8.0
  4. pkgrel=4
  5. pkgdesc="Video chat browser plug-in for Google Talk"
  6. arch=('i686' 'x86_64')
  7. url="http://www.google.com/chat/video"
  8. license=('unknown')
  9. optdepends=('libnotify' 'pulseaudio')
  10.  
  11. if [ "${CARCH}" = 'x86_64' ]; then
  12.     ARCH='amd64'
  13.     depends=('alsa-utils' 'glibc>=2.4' 'fontconfig>=2.4.0' 'freetype2>=2.3.5' 'libgl' 'glew>=1.5.0' 'glib2>=2.12.0' 'gtk2>=2.12.0' 'libstdc++5' 'libpng12>=1.2.13' 'lib32-gcc-libs>=4.1.1' 'lib32-libx11' 'lib32-libxt' 'lib32-libxfixes' 'lib32-openssl-compatibility'  'lib32-zlib' 'lib32-alsa-lib' 'lib32-libstdc++5' 'lib32-glibc>=2.3.4')
  14.     md5sums=('b72cbac73977660f1c19830918f10604')
  15. else
  16.     ARCH='i386'
  17.     depends=('alsa-utils' 'glibc>=2.4' 'fontconfig>=2.4.0' 'freetype2>=2.3.5' 'libgl' 'glew>=1.5.0' 'glib2>=2.12.0' 'gtk2>=2.12.0' 'libstdc++5' 'libpng12>=1.2.13' 'gcc-libs>=4.1.1' 'libx11' 'libxt' 'libxfixes' 'openssl-compatibility')
  18.     md5sums=('094c9adba0ba9682d1379e4c4b2316b5')
  19. fi
  20.  
  21. source=(http://dl.google.com/linux/direct/google-talkplugin_current_$ARCH.deb)
  22.  
  23. build() {
  24.     #Get binary sources.
  25.     ar -xv google-talkplugin_current_$ARCH.deb || return 1
  26.     tar -xvf data.tar.gz || return 1
  27.  
  28.     #This crontab script is for debian only,remove it.
  29.     rm -r $srcdir/etc
  30.     rm -r $srcdir/opt/google/talkplugin/cron
  31.  
  32.     #Change install path in all files.
  33.     cd $srcdir/opt/google/talkplugin
  34.     find . -type f | xargs sed -i 's:/google/talkplugin:/google-talkplugin:g' || return 1
  35.  
  36.     #Add changelog file.
  37.     cd $srcdir/usr/share/doc/google-talkplugin
  38.     gzip -dvf changelog.Debian.gz
  39.     mv changelog.Debian changelog
  40. }
  41. package() {
  42.     #Install files.
  43.     cd $srcdir/opt/google/talkplugin
  44.     find . -type d -exec install -d {,${pkgdir}/opt/google-talkplugin/}{} \; || return 1
  45.     find . -type f -exec install -D -m 644 {,${pkgdir}/opt/google-talkplugin/}{} \; || return 1
  46.  
  47.     #Make google-talkplugin executable.
  48.     chmod 755 ${pkgdir}/opt/google-talkplugin/GoogleTalkPlugin
  49.  
  50.     #Link all libraries into right location.
  51.     folders=`find $srcdir/usr/lib -type d -name plugins -print | sed 's:\./::'`
  52.     for folder in $folders; do
  53.         mkdir -p $pkgdir/$folder
  54.         ln -s /opt/google-talkplugin/libnpgoogletalk.so $pkgdir/$folder/libnpgoogletalk.so
  55.         ln -s /opt/google-talkplugin/libnpgtpo3dautoplugin.so $pkgdir/$folder/libnpgtpo3dautoplugin.so
  56.     done
  57.    
  58.     #Install changelog file.
  59.     install -D -m 644 {$srcdir,$pkgdir}/usr/share/doc/google-talkplugin/changelog
  60. }
clone this paste RAW Paste Data