Advertisement
Guest User

Untitled

a guest
May 11th, 2021
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. # Maintainer: JoseDR120 <josedrgerena720@gmail.com>
  2.  
  3. pkgname=atom-editor-bin
  4. pkgver=1.57.0
  5. pkgrel=1
  6. pkgdesc="Hackable text editor built on Electron (official precompiled binary)"
  7. arch=('x86_64')
  8. url="https://github.com/atom/atom"
  9. license=('MIT')
  10. provides=('atom' 'apm')
  11. options=(!strip !emptydirs)
  12. depends=('git' 'gtk3' 'libnotify' 'libxtst' 'nss' 'xdg-utils' 'desktop-file-utils' 'alsa-lib' 'libgnome-keyring' 'libxss' 'libxkbfile' 'ripgrep')
  13. optdepends=('gvfs')
  14. conflicts=('atom' 'atom-editor' 'atom-editor-git' 'atom-editor-git-tagged' 'apm' 'atom-notracking')
  15. install=$pkgname.install
  16. source=("atom-amd64-v${pkgver}.deb::https://atom-installer.github.com/v${pkgver}/atom-amd64.deb"
  17. "LICENSE::https://raw.githubusercontent.com/atom/atom/v${pkgver}/LICENSE.md"
  18. atom-editor-bin.install
  19. startupwmclass.patch)
  20. sha512sums=('cc71c3457584df13d1479f36b2015ebf311c48e478b24fcdb1660a967287a44da2a6d9b009537aeaba1a55781ace09922ce9022e666d32d08bfcf536cee3e32d'
  21. 'aa2bfd5acaf642bbdb7290ac8b7ddeaf0b84ae8b12e6d893bb6adec799ea9141ff0f606526932568f15104ef2129f152ef19882949c1c2d27aed1ed19ffde185'
  22. 'e30f7e4812898b80c079ba419e0cb37522c2e154ef7fdd6dda3da06dcbcaadc42016dd3d3b8caf206b842a2b9e3b954e537626d72337c56f05365a733627ce6c'
  23. '374b9f8fa1e0d2cab77d4cea9c718fb889bb6db3dbf9762ad5cbb88f3a0936023f36641012fc90e029832a772b8d4fdfe6b72f304e3950c02a7c9bf4d6d3d4ec')
  24.  
  25. prepare() {
  26. # Extract data
  27. bsdtar xf data.tar.xz
  28.  
  29. # Apply patches
  30. patch -sp1 < "${srcdir}"/startupwmclass.patch
  31. }
  32.  
  33. package() {
  34. # Recursively remove group's write permission before moving to package directory
  35. chmod -R g-w usr
  36. mv usr "${pkgdir}"
  37.  
  38. # Add LICENSE
  39. install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
  40. }
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement