Advertisement
Guest User

Untitled

a guest
Jan 14th, 2021
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. # Maintainer: EatMyVenom <eat.my.venomm@gmail.com>
  2. # Contributor: bittin
  3. pkgname=atom-editor-beta-bin
  4. _pkgver="1.55.0-beta0"
  5. pkgver=1.55.0beta0
  6. pkgrel=1
  7. pkgdesc="A hackable text editor for the 21st Century"
  8. arch=('x86_64')
  9. license=('MIT')
  10. depends=('gconf' 'git' 'nodejs' 'npm' 'libsecret' 'python' 'libx11' 'libxkbfile')
  11. provides=('atom')
  12. conflicts=('atom')
  13. source=("https://github.com/atom/atom/releases/download/v${_pkgver}/atom-amd64.tar.gz"
  14. "https://raw.githubusercontent.com/atom/atom/master/resources/linux/atom.desktop.in")
  15. md5sums=('84de52cf56493fc8698e6000944853ce'
  16. 'edd7c80254eae752065ec9fd17915752')
  17.  
  18. package() {
  19. cd "atom-beta-${_pkgver}-amd64"
  20.  
  21. install -d -m 755 "${pkgdir}/usr/share/applications"
  22. install -d -m 755 "${pkgdir}"/usr/lib
  23. install -d -m 755 "${pkgdir}"/usr/bin
  24. cp -r ./ "${pkgdir}"/usr/lib/atom
  25.  
  26. sed -e "s|<%= appName %>|Atom|" \
  27. -e "s/<%= description %>/${pkgdesc}/" \
  28. -e "s|<%= installDir %>|/usr|" \
  29. -e "s|<%= appFileName %>|atom|" \
  30. -e "s|<%= iconPath %>|atom|" \
  31. ../atom.desktop.in > "${pkgdir}/usr/share/applications/atom.desktop"
  32.  
  33. cd "${pkgdir}"/usr/bin
  34. ln -sf ../lib/atom/atom atom
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement