Advertisement
BlueManCZ

mailspring-bin-1.7.4.ebuild

Mar 25th, 2020
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. # Copyright 2020 Gentoo Authors
  2. # Distributed under the terms of the GNU General Public License v2
  3.  
  4. EAPI=7
  5. inherit desktop unpacker
  6.  
  7. MY_PN="${PN/-bin/}"
  8.  
  9. DESCRIPTION="Beautiful and fast email client"
  10. HOMEPAGE="https://getmailspring.com"
  11. SRC_URI="https://github.com/Foundry376/Mailspring/releases/download/${PV}/${MY_PN}-${PV}-amd64.deb -> ${P}.deb"
  12.  
  13. LICENSE="GPLv3"
  14. SLOT="0"
  15. KEYWORDS="~amd64"
  16. IUSE=""
  17.  
  18. DEPEND="app-crypt/libsecret
  19. dev-vcs/git
  20. dev-libs/libgcrypt
  21. dev-libs/nss
  22. dev-libs/openssl
  23. gnome-base/gconf
  24. gnome-base/gnome-keyring
  25. gnome-base/gvfs
  26. virtual/libudev
  27. x11-libs/libXtst
  28. x11-misc/xdg-utils"
  29. RDEPEND="${DEPEND}"
  30. BDEPEND=""
  31.  
  32. S="${WORKDIR}"
  33.  
  34. QA_PREBUILT="/opt/${PN}/*.so
  35. /opt/${PN}/resources/app.asar.unpacked/*.so*
  36. /opt/${PN}/resources/app.asar.unpacked/mailsync*
  37. /opt/${PN}/mailspring"
  38.  
  39. src_install() {
  40. dodoc -r usr/share/doc/*
  41.  
  42. insinto /opt/${PN}
  43. doins -r usr/share/mailspring/*
  44.  
  45. exeinto /opt/${PN}
  46. doexe usr/share/mailspring/mailspring usr/share/mailspring/{libEGL,libGLESv2,libVkICD_mock_icd,libffmpeg}.so
  47. dosym /opt/${PN}/${MY_PN} /usr/bin/${MY_PN}
  48. dosym /opt/${PN}/ /usr/share/${MY_PN}
  49.  
  50. exeinto /opt/${PN}/resources/app.asar.unpacked/
  51. doexe usr/share/mailspring/resources/app.asar.unpacked/mailsync usr/share/mailspring/resources/app.asar.unpacked/mailsync.bin
  52.  
  53. doicon usr/share/pixmaps/${MY_PN}.png
  54. make_desktop_entry ${MY_PN} "Mailspring" ${MY_PN} "Network;Email;ContactManagement" "StartupWMClass=${MY_PN}"
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement