Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Dominik Mayer <dominik.mayer@gmail.com>
- # Contributer: Techlive Zheng <techlivezheng at gmail dot com>
- pkgname=google-talkplugin
- pkgver=2.3.2.0
- pkgrel=1
- pkgdesc="Video chat browser plug-in for Google Talk"
- arch=('i686' 'x86_64')
- url="http://www.google.com/chat/video"
- license=('unknown')
- if [ "${CARCH}" = 'x86_64' ]; then
- ARCH='amd64'
- 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' 'lib32-zlib' 'lib32-alsa-lib' 'lib32-libstdc++5' 'lib32-glibc>=2.3.4' 'lib32-gtk2' 'lib32-gdk-pixbuf2')
- optdepends=('libnotify' 'pulseaudio' 'lib32-libpulse')
- md5sums=('a84e7295e25b5344031747e2a6b38cd0')
- else
- ARCH='i386'
- 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')
- optdepends=('libnotify' 'pulseaudio')
- md5sums=('c6d5d8f881960483f6cb9a84d955a8e9')
- fi
- source=(http://dl.google.com/linux/direct/google-talkplugin_current_$ARCH.deb)
- build() {
- #Get binary sources.
- ar -xv google-talkplugin_current_$ARCH.deb || return 1
- tar -xvf data.tar.gz || return 1
- #This crontab script is for debian only,remove it.
- rm -r $srcdir/etc
- rm -r $srcdir/opt/google/talkplugin/cron
- #Change install path in all files.
- cd $srcdir/opt/google/talkplugin
- find . -type f | xargs sed -i 's:/google/talkplugin:/google-talkplugin:g' || return 1
- #Add changelog file.
- cd $srcdir/usr/share/doc/google-talkplugin
- gzip -dvf changelog.Debian.gz
- mv changelog.Debian changelog
- }
- package() {
- #Install files.
- cd $srcdir/opt/google/talkplugin
- find . -type d -exec install -d {,${pkgdir}/opt/google-talkplugin/}{} \; || return 1
- find . -type f -exec install -D -m 644 {,${pkgdir}/opt/google-talkplugin/}{} \; || return 1
- #Make google-talkplugin executable.
- chmod 755 ${pkgdir}/opt/google-talkplugin/GoogleTalkPlugin
- #Link all libraries into right location.
- folders=`cd $srcdir;find usr/lib -type d -name plugins -print | sed 's:\./::'`
- for folder in $folders; do
- mkdir -p $pkgdir/$folder
- ln -s /opt/google-talkplugin/libnpgoogletalk.so $pkgdir/$folder/libnpgoogletalk.so
- ln -s /opt/google-talkplugin/libnpgtpo3dautoplugin.so $pkgdir/$folder/libnpgtpo3dautoplugin.so
- done
- #Install changelog file.
- install -D -m 644 {$srcdir,$pkgdir}/usr/share/doc/google-talkplugin/changelog
- }
Add Comment
Please, Sign In to add comment