SHARE
TWEET

thunderbird-gnome-keyring-git for 17.0

Peaceseeker Nov 21st, 2012 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Peace4all <markspost at rocketmail dot com>
  2. pkgname='thunderbird-gnome-keyring-git'
  3. pkgver=20121121
  4. pkgrel=1
  5. pkgdesc="Gnome-keyring integration for Thunderbird"
  6. arch=('i686' 'x86_64')
  7. url='https://github.com/infinity0/mozilla-gnome-keyring'
  8. license=('GPL')
  9. depends=('thunderbird>=17.0' 'gnome-keyring' 'libsecret')
  10. makedepends=('zip' 'unzip' 'xulrunner>=17.0')
  11. provides=('thunderbird-gnome-keyring')
  12.  
  13. _gitroot="git://github.com/infinity0/mozilla-gnome-keyring.git"
  14. _gitname="mozilla-gnome-keyring"
  15.  
  16. build()
  17. {
  18.  
  19.         cd "$srcdir"
  20.         msg "Connecting to GIT server...."
  21.  
  22.         if [ -d $_gitname ] ; then
  23.          cd $_gitname && git pull origin
  24.          msg "The local files are updated."
  25.         else
  26.          git clone $_gitroot $_gitname
  27.         fi
  28.  
  29.         msg "GIT checkout done or server timeout"
  30.         msg "Starting make..."
  31.  
  32.         rm -rf "$srcdir/$_gitname-build"
  33.         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  34.         cd "$srcdir/$_gitname-build"
  35.  
  36. # fix nsnull error
  37.   sed -i 's|nsnull|NS_OK|g' {GnomeKeyring,xpcom_abi}.cpp
  38.  
  39.         make
  40. }
  41.  
  42. package()
  43. {
  44.  
  45.   cd $srcdir/mozilla-gnome-keyring-build/xpi
  46.   local emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' install.rdf)
  47.   local dstdir=$pkgdir/usr/lib/thunderbird/extensions/${emid}
  48.   install -d $dstdir
  49. #  sed -i 's#<em:maxVersion>.*</em:maxVersion>#<em:maxVersion>7.*</em:maxVersion>#' install.rdf
  50.   cp -R * $dstdir
  51. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top