summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO31
-rw-r--r--PKGBUILD53
-rw-r--r--aide-url-handler.desktop12
-rw-r--r--aide-wayland.desktop18
-rw-r--r--aide.desktop18
-rwxr-xr-xaide.sh13
6 files changed, 145 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..3b83fc89cdce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = aide-ide-bin
+ pkgdesc = The open-source AI-native IDE, fork of VS Code.
+ pkgver = 1.96.4.25031
+ pkgrel = 1
+ url = https://aide.dev/
+ arch = x86_64
+ license = AGPL-3.0-or-later
+ depends = fontconfig
+ depends = libxtst
+ depends = gtk3
+ depends = python3
+ depends = cairo
+ depends = alsa-lib
+ depends = nss
+ depends = gcc
+ depends = libnotify
+ depends = libxss
+ depends = glibc
+ depends = bash
+ source = aide-ide-bin-1.96.4.25031.tar.gz::https://github.com/codestoryai/binaries/releases/download/1.96.4.25031/Aide-linux-x64-1.96.4.25031.tar.gz
+ source = aide.sh
+ source = aide.desktop
+ source = aide-wayland.desktop
+ source = aide-url-handler.desktop
+ sha256sums = 3e50a26d75ce1af8e5a5796f1d7d53ae325bcbc80dd60484950cd00a6f84f8d0
+ sha256sums = 0cd15f0cbd0cc93cb0e8fde893f97f33120e2eaee511526524ffde55805b72ae
+ sha256sums = a27c3bde1179b792f5df160b5678342f7273b3784223403065265fa5308ad605
+ sha256sums = f17ea7d221c79c9eaceaec69c0ca0db12f1b54699869b859a169db8ba5364fc5
+ sha256sums = 0d9408b36d84bd3f76c8f563b39fc4da7264bdc0e06b45f42ac1c9d57a7e24b3
+
+pkgname = aide-ide-bin
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ff5a2ccfea02
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Wiktor W. <wykwit@disroot.org>
+
+pkgname=aide-ide-bin
+pkgver=1.96.4.25031
+pkgrel=1
+pkgdesc='The open-source AI-native IDE, fork of VS Code.'
+arch=('x86_64')
+url='https://aide.dev/'
+license=('AGPL-3.0-or-later')
+depends=('fontconfig' 'libxtst' 'gtk3' 'python3' 'cairo' 'alsa-lib' 'nss' 'gcc' 'libnotify' 'libxss' 'glibc' 'bash')
+source=(
+ "$pkgname-$pkgver.tar.gz::https://github.com/codestoryai/binaries/releases/download/$pkgver/Aide-linux-x64-$pkgver.tar.gz"
+ 'aide.sh'
+ 'aide.desktop'
+ 'aide-wayland.desktop'
+ 'aide-url-handler.desktop'
+)
+sha256sums=(
+ '3e50a26d75ce1af8e5a5796f1d7d53ae325bcbc80dd60484950cd00a6f84f8d0'
+ '0cd15f0cbd0cc93cb0e8fde893f97f33120e2eaee511526524ffde55805b72ae'
+ 'a27c3bde1179b792f5df160b5678342f7273b3784223403065265fa5308ad605'
+ 'f17ea7d221c79c9eaceaec69c0ca0db12f1b54699869b859a169db8ba5364fc5'
+ '0d9408b36d84bd3f76c8f563b39fc4da7264bdc0e06b45f42ac1c9d57a7e24b3'
+)
+
+# Official install script is available here:
+# https://raw.githubusercontent.com/codestoryai/binaries/main/linux/linux_install.sh
+
+package() {
+ PKGDIR="$pkgdir/opt/aide"
+
+ # copy contents of the tarball to target package
+ mkdir -p $PKGDIR
+ cp -at "$PKGDIR" *
+
+ # install launch script
+ install -Dm 755 aide.sh $pkgdir/usr/bin/aide
+
+ # install the icon
+ install -Dm 644 "${PKGDIR}/resources/app/resources/linux/code.png" $pkgdir/usr/share/pixmaps/aide.png
+
+ # install desktop entries
+ install -Dt $pkgdir/usr/share/applications/ *.desktop
+
+ # set up permissions
+ chmod 4755 "${PKGDIR}/chrome-sandbox"
+ chmod 755 "${PKGDIR}/resources/app/extensions/codestory/sidecar_bin/target/release/webserver"
+
+ # install shell completions
+ mkdir -p $pkgdir/usr/share/zsh/site-functions $pkgdir/usr/share/bash-completion/completions
+ ln -sf "${PKGDIR}/resources/completions/zsh/_aide" $pkgdir/usr/share/zsh/site-functions/_aide
+ ln -sf "${PKGDIR}/resources/completions/bash/aide" $pkgdir/usr/share/bash-completion/completions/aide
+}
diff --git a/aide-url-handler.desktop b/aide-url-handler.desktop
new file mode 100644
index 000000000000..d87d4f67093a
--- /dev/null
+++ b/aide-url-handler.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=Aide - URL Handler
+Comment=The Open-Source AI-native IDE.
+GenericName=Text Editor
+Exec=/usr/bin/aide --open-url %U
+Icon=aide
+Type=Application
+NoDisplay=true
+StartupNotify=false
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=x-scheme-handler/aide;
+Keywords=vscode;aide;
diff --git a/aide-wayland.desktop b/aide-wayland.desktop
new file mode 100644
index 000000000000..42299f253117
--- /dev/null
+++ b/aide-wayland.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Aide - Wayland
+Comment=The Open-Source AI-native IDE.
+GenericName=Text Editor
+Exec=/usr/bin/aide --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland %F
+Icon=aide
+Type=Application
+StartupNotify=false
+StartupWMClass=aide-url-handler
+Categories=Utility;Development;IDE;
+MimeType=text/plain;inode/directory;
+Actions=new-empty-window;
+Keywords=vscode;aide;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/aide --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland --new-window %F
+Icon=aide
diff --git a/aide.desktop b/aide.desktop
new file mode 100644
index 000000000000..3475f1737219
--- /dev/null
+++ b/aide.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=Aide
+Comment=The Open-Source AI-native IDE.
+GenericName=Text Editor
+Exec=/usr/bin/aide %F
+Icon=aide
+Type=Application
+StartupNotify=false
+StartupWMClass=Aide
+Categories=Utility;Development;IDE;
+MimeType=text/plain;inode/directory;
+Actions=new-empty-window;
+Keywords=vscode;aide;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/aide --new-window %F
+Icon=aide
diff --git a/aide.sh b/aide.sh
new file mode 100755
index 000000000000..9aa9db8a7418
--- /dev/null
+++ b/aide.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
+
+if [[ -f $XDG_CONFIG_HOME/aide-flags.conf ]]; then
+ readarray -t lines <"$XDG_CONFIG_HOME/aide-flags.conf"
+ for line in "${lines[@]}"; do
+ if ! [[ "$line" =~ ^[[:space:]]*# ]]; then
+ CODE_USER_FLAGS+=($line)
+ fi
+ done
+fi
+
+exec /opt/aide/bin/aide "$@" "${CODE_USER_FLAGS[@]}"