From 14b24ed97a8780c178264f94d37e612a450b2b6e Mon Sep 17 00:00:00 2001 From: Jeremy MANSON Date: Fri, 13 Dec 2024 06:06:39 +0100 Subject: [PATCH] ajout de windsurf --- app-editors/windsurf/metadata.xml | 15 ++++++ app-editors/windsurf/windsurf-0.1.0.ebuild | 61 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 app-editors/windsurf/metadata.xml create mode 100644 app-editors/windsurf/windsurf-0.1.0.ebuild diff --git a/app-editors/windsurf/metadata.xml b/app-editors/windsurf/metadata.xml new file mode 100644 index 0000000..018f438 --- /dev/null +++ b/app-editors/windsurf/metadata.xml @@ -0,0 +1,15 @@ + + + + + your.email@domain.com + Your Name + + + Windsurf is an AI-powered IDE that integrates with Cascade, providing intelligent + code completion, refactoring suggestions, and real-time AI assistance for developers. + + + Codeium/windsurf + + diff --git a/app-editors/windsurf/windsurf-0.1.0.ebuild b/app-editors/windsurf/windsurf-0.1.0.ebuild new file mode 100644 index 0000000..30ec841 --- /dev/null +++ b/app-editors/windsurf/windsurf-0.1.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Windsurf - An AI-powered IDE with Cascade integration" +HOMEPAGE="https://codeium.com/windsurf" +SRC_URI="https://github.com/Codeium/windsurf/releases/download/v${PV}/windsurf-${PV}-linux-x64.tar.gz" + +LICENSE="Proprietary" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +RESTRICT="strip" +RDEPEND=" + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libxkbfile + x11-libs/libsecret + dev-libs/nss + dev-libs/nspr +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/windsurf-${PV}" + +src_install() { + local destdir="/opt/${PN}" + + # Installation du programme + insinto "${destdir}" + doins -r * + + # Rendre l'exécutable... exécutable + fperms +x "${destdir}/windsurf" + + # Créer un lien symbolique dans /usr/bin + dosym "${destdir}/windsurf" "/usr/bin/windsurf" + + # Installer l'icône + newicon "resources/app/resources/icons/windsurf.png" "${PN}.png" + + # Créer une entrée dans le menu des applications + make_desktop_entry \ + "${PN}" \ + "Windsurf IDE" \ + "${PN}" \ + "Development;IDE;" \ + "StartupWMClass=Windsurf" +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +}