Advertisement
Guest User

Mailspring 1.4.1 PKGBUILD

a guest
Aug 16th, 2018
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.47 KB | None | 0 0
  1. # Maintainer: Joakim Nylén <me@jnylen.nu>
  2. # Contributor: guydep
  3.  
  4. pkgname=mailspring
  5. _pkgver=1.4.1
  6. pkgver=${_pkgver}
  7. pkgrel=1
  8. pkgdesc="A beautiful, fast and maintained fork of Nylas Mail by one of the original authors."
  9. arch=('x86_64')
  10. license=('custom: GPL3 and (C) 2016-2017 Foundry 376, LLC.')
  11. url="https://getmailspring.com/"
  12. makedepends=("patchelf")
  13. options=("!strip" "staticlibs")
  14.  
  15.  
  16. source=(
  17. "https://archive.archlinux.org/packages/g/glibc/glibc-2.27-3-${CARCH}.pkg.tar.xz"
  18. )
  19.  
  20. noextract=("glibc-2.27-3-${CARCH}.pkg.tar.xz")
  21. sha256sums=(
  22. 'a9e1b18d7f613be660556dbd6883781e88a0f5113230147e230d3e2f268792dc'
  23. )
  24. sha256sums_x86_64=(
  25. '9ce1439261d3909bdc9c3039a1cd8b4440c8dfc8a16210d7c2eada3868e66e0a'
  26. )
  27.  
  28. source_x86_64=("https://github.com/Foundry376/Mailspring/releases/download/${_pkgver}/mailspring-${_pkgver}-amd64.deb")
  29. depends=("libgnome-keyring" "gnome-keyring" "libxss" "libtool" "c-ares" "ctemplate" "tidy" "libxkbfile" "libsecret" "gconf" "gtk2" "nss")
  30.  
  31. package() {
  32.     _ldir="/usr/share/$pkgname"
  33.     _pdir="$pkgdir/$_ldir"
  34.     _pexe="$pkgdir/usr/bin/$pkgname"
  35.  
  36.     cd ${srcdir}
  37.  
  38.     mkdir -p "$_pdir/glibc"
  39.    
  40.     tar -xJC "$_pdir/glibc" -f "glibc-2.27-3-$CARCH.pkg.tar.xz"
  41.     rm "$_pdir/glibc/"{.BUILDINFO,.INSTALL,.MTREE,.PKGINFO}
  42.  
  43.     tar -xvf data.tar.xz -C ${pkgdir} --exclude='./control'
  44.  
  45.     patchelf --set-interpreter "$_ldir/glibc/usr/lib/ld-linux-x86-64.so.2" "$_pexe"
  46.     patchelf --set-rpath "$_ldir:$_ldir/glibc/usr/lib" "$_pexe"
  47.  
  48.     chmod -R go-w "${pkgdir}"/usr
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement