summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3223083a8e770ddd25fae6fe38467ee76f34917 (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
33
# Maintainer: Joakim Nylén <me@jnylen.nu>
# Contributor: ahrs

pkgname=mailspring
pkgver=1.0.1
pkgrel=5
pkgdesc="A beautiful, fast and maintained fork of Nylas Mail by one of the original authors."
arch=('x86_64')
license=('GPL3')
url="https://getmailspring.com/"
options=('!strip' '!upx')

source=()
sha256sums=()
sha256sums_x86_64=('3d1796268d6169d24427f00dce229305943d516bbe060dc4cdef4db615f4f380')

source_x86_64=("https://mailspring-builds.s3.amazonaws.com/client/ba1d6734/linux/mailspring-${pkgver}-amd64.deb")
depends=("libsasl>=2.0.0" "libgnome-keyring" "libtool" "c-ares" "ctemplate" "icu" "libxext" "openssl" "tidy" "libxtst" "libxkbfile" "glib2" "libxml2" "libutil-linux")

package() {
	cd ${srcdir}

	tar -xvf data.tar.xz -C ${pkgdir} --exclude='./control'

  # mailspring calls libsasl2.so.2 for some reason when arch have .3
  if [[ ! -f "/usr/lib/libsasl2.so.2" && -f /usr/lib/libsasl2.so.3 ]]
  then
    install -dm755 ${pkgdir}/usr/lib
    ln -s /usr/lib/libsasl2.so.3 ${pkgdir}/usr/lib/libsasl2.so.2
  fi

	chmod -R go-w "${pkgdir}"/usr
}