Advertisement
Guest User

Arch Linux - Void editor

a guest
Apr 20th, 2025
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.92 KB | Software | 0 0
  1. PKGBUILD
  2. #==========================
  3. pkgname=void-editor
  4. pkgver=1.2.1.25105
  5. pkgrel=1
  6. pkgdesc="Void Editor - AI Code Editor"
  7. arch=('x86_64')
  8. url="https://voideditor.com"
  9. license=('Apache-2.0 and MIT')
  10. _electron=electron34
  11. depends=($_electron 'libsecret' 'libx11' 'libxkbfile' 'ripgrep')
  12. source=("https://github.com/voideditor/binaries/releases/download/${pkgver}/Void-linux-x64-${pkgver}.tar.gz"
  13.         "void-editor.desktop")
  14. sha256sums=('65b3c2ced2b1d337d4a3483e9a6fa5bb2ff942ba04f519b4270c27d9cb2408df' '2571bdcc0fed3a7980a9f872875f3cb18a015df4a0c65210292116c0f574a538')
  15.  
  16. package() {
  17.   # Install all files to /opt/void
  18.   install -d "$pkgdir/opt/void"
  19.   cp -r "$srcdir"/* "$pkgdir/opt/void/"
  20.  
  21.   # Create symlink in /usr/bin
  22.   install -d "$pkgdir/usr/bin"
  23.   ln -s /opt/void/void "$pkgdir/usr/bin/void"
  24.  
  25.   # Desktop file
  26.   install -Dm644 "$srcdir/void-editor.desktop" "$pkgdir/usr/share/applications/void-editor.desktop"
  27.  
  28.   # Icon
  29.   install -Dm644 "$srcdir/resources/app/resources/linux/code.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/void.png"
  30.  
  31.   # License
  32.   install -Dm644 "$srcdir/LICENSES.chromium.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  33. }
  34.  
  35.  
  36.  
  37.  
  38. #==========================
  39. void-editor.desktop
  40. #==========================
  41. [Desktop Entry]
  42. Name=Void Editor
  43. Comment=AI Code Editor
  44. GenericName=Text Editor
  45. Exec=void %F
  46. Icon=void
  47. Type=Application
  48. StartupNotify=false
  49. StartupWMClass=void
  50. Categories=TextEditor;Development;IDE;
  51. MimeType=application/x-void-workspace;
  52. Actions=new-empty-window;
  53. Keywords=void;
  54.  
  55. [Desktop Action new-empty-window]
  56. Name=New Empty Window
  57. Name[de]=Neues leeres Fenster
  58. Name[es]=Nueva ventana vacía
  59. Name[fr]=Nouvelle fenêtre vide
  60. Name[it]=Nuova finestra vuota
  61. Name[ja]=新しい空のウィンドウ
  62. Name[ko]=새 빈 창
  63. Name[ru]=Новое пустое окно
  64. Name[zh_CN]=新建空窗口
  65. Name[zh_TW]=開新空視窗
  66. Exec=void --new-window %F
  67. Icon=void
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement