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

LastPass PKGBUILD

By: a guest on Mar 10th, 2012  |  syntax: Bash  |  size: 1.07 KB  |  views: 49  |  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: Joshua Stiefer <facedelajunk at gmail.com>
  2. # Contributor: Michael Seiwald <michael at mseiwald.at>
  3. # Contributor: Techlive Zheng <techlivezheng at gmail.com>
  4.  
  5. pkgname=lastpass
  6. pkgver=1.80.0
  7. pkgrel=5
  8. pkgdesc="Lastpass pocket for backup and offline access"
  9. arch=('i686' 'x86_64')
  10. url="https://lastpass.com"
  11. license=("LastPass")
  12. depends=("ca-certificates" "openssl" "libldap" "libidn" "gtk2")
  13. makedepends=("upx")
  14. source=("https://download.lastpass.com/pocket.tar.bz2")
  15. options=("!strip")
  16. md5sums=('2ef5d1ca2e4b5c5121a24158e2c9a7d8')
  17. [ "$CARCH" = "x86_64" ] && source=(https://rodan.lastpass.com/pocket_x64.tar.bz2)
  18. [ "$CARCH" = "x86_64" ] && md5sums=('c30d0baa915a848a13dbb45680836c09')
  19.  
  20. build() {
  21.         cd $srcdir
  22.         upx -d pocket
  23.         sed -i 's/libssl.so.0.9.8/libssl.so.1.0.0/g' pocket
  24.         sed -i 's/libcrypto.so.0.9.8/libcrypto.so.1.0.0/g' pocket
  25. }
  26.  
  27. package() {
  28.         if [ "$CARCH" == "i686" ];then
  29.                 install -Dm 755 "$srcdir/pocket" "$pkgdir/usr/bin/lastpass"
  30.         elif [ "$CARCH" == "x86_64" ];then
  31.                 install -Dm 755 "$srcdir/pocket_x64" "$pkgdir/usr/bin/lastpass"
  32.         fi
  33. }