summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bb63341d9db6b442367fcd462bfec0c575144c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Chris Down <chris@chrisdown.name>
# Contributor: Yung Wood <yung at yung.com.au>
# Contributor: Joshua Stiefer <facedelajunk at gmail.com>
# Contributor: Michael Seiwald <michael at mseiwald.at>
# Contributor: Techlive Zheng <techlivezheng at gmail.com>
# Maintainer: ava1ar <mail(at)ava1ar(dot)me>

pkgname=lastpass-pocket
pkgver=3.1.40
pkgrel=3
pkgdesc="Backup and offline access for LastPass"
arch=('i686' 'x86_64')
url="https://lastpass.com"
license=('custom:LastPass')
options=('!strip')
depends=('ca-certificates' 'openssl>=1.0.0' 'libldap' 'libidn' 'gtk2' 'libpng12')
source=('lastpass.desktop' 'lastpass.png')
sha1sums=('4e8258a93d2a72c86abc916fee1faab0d34fc8a7'
          '043994fdbb2af48eadb17e2ffe48a9a1652c297b')
sha1sums_i686=('97bae5c0895f7002dec2b3017f081aff34fe489a')
sha1sums_x86_64=('37dd50684f72ec5d1fd5e528c87cc7e43cccf679')
source_i686=(https://download.lastpass.com/pocket.tar.bz2)
source_x86_64=(https://download.lastpass.com/pocket_x64.tar.bz2)

package() {
  [ "$CARCH" == i686 ] && _pocket_bin=pocket
  [ "$CARCH" == x86_64 ] && _pocket_bin=pocket_x64
  install -Dm755 ${_pocket_bin} "${pkgdir}/usr/bin/lastpass"
  sed -i -e 's/libssl.so.0.9.8/libssl.so.1.0.0/g' -e 's/libcrypto.so.0.9.8/libcrypto.so.1.0.0/g' "${pkgdir}/usr/bin/lastpass"
  install -Dm644 lastpass.png "${pkgdir}/usr/share/icons/lastpass.png"
  install -Dm644 lastpass.desktop "${pkgdir}/usr/share/applications/lastpass.desktop"
}