Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PKGBUILD
- #==========================
- pkgname=void-editor
- pkgver=1.2.1.25105
- pkgrel=1
- pkgdesc="Void Editor - AI Code Editor"
- arch=('x86_64')
- url="https://voideditor.com"
- license=('Apache-2.0 and MIT')
- _electron=electron34
- depends=($_electron 'libsecret' 'libx11' 'libxkbfile' 'ripgrep')
- source=("https://github.com/voideditor/binaries/releases/download/${pkgver}/Void-linux-x64-${pkgver}.tar.gz"
- "void-editor.desktop")
- sha256sums=('65b3c2ced2b1d337d4a3483e9a6fa5bb2ff942ba04f519b4270c27d9cb2408df' '2571bdcc0fed3a7980a9f872875f3cb18a015df4a0c65210292116c0f574a538')
- package() {
- # Install all files to /opt/void
- install -d "$pkgdir/opt/void"
- cp -r "$srcdir"/* "$pkgdir/opt/void/"
- # Create symlink in /usr/bin
- install -d "$pkgdir/usr/bin"
- ln -s /opt/void/void "$pkgdir/usr/bin/void"
- # Desktop file
- install -Dm644 "$srcdir/void-editor.desktop" "$pkgdir/usr/share/applications/void-editor.desktop"
- # Icon
- install -Dm644 "$srcdir/resources/app/resources/linux/code.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/void.png"
- # License
- install -Dm644 "$srcdir/LICENSES.chromium.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- }
- #==========================
- void-editor.desktop
- #==========================
- [Desktop Entry]
- Name=Void Editor
- Comment=AI Code Editor
- GenericName=Text Editor
- Exec=void %F
- Icon=void
- Type=Application
- StartupNotify=false
- StartupWMClass=void
- Categories=TextEditor;Development;IDE;
- MimeType=application/x-void-workspace;
- Actions=new-empty-window;
- Keywords=void;
- [Desktop Action new-empty-window]
- Name=New Empty Window
- Name[de]=Neues leeres Fenster
- Name[es]=Nueva ventana vacía
- Name[fr]=Nouvelle fenêtre vide
- Name[it]=Nuova finestra vuota
- Name[ja]=新しい空のウィンドウ
- Name[ko]=새 빈 창
- Name[ru]=Новое пустое окно
- Name[zh_CN]=新建空窗口
- Name[zh_TW]=開新空視窗
- Exec=void --new-window %F
- Icon=void
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement