rename package from windsurf to devin-desktop

Update pkgname, pkgdesc, url, license, source paths, binary names,
and script references to reflect the upstream rebranding. Add
conflicts=('windsurf') and provides=('windsurf' 'devin-desktop') for
clean AUR upgrades from the old package.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
2026-06-04 18:25:50 +02:00
co-authored by Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent d9dc98c312
commit e442e6a9aa
4 changed files with 36 additions and 31 deletions
+18 -16
View File
@@ -1,12 +1,12 @@
# Maintainer: Chris Watson <cawatson1993@gmail.com>
pkgname=windsurf
pkgname=devin-desktop
pkgver=2.3.15
pkgrel=1
pkgdesc='The new purpose-built IDE to harness magic'
pkgdesc='Devin - the AI software engineer IDE'
arch=('x86_64')
url='https://windsurf.com/'
license=('LicenseRef-Windsurf Editor')
url='https://devin.ai/'
license=('LicenseRef-Devin')
depends=(
'alsa-lib'
'dbus'
@@ -26,37 +26,39 @@ optdepends=(
'org.freedesktop.secrets: Sync settings'
'vulkan-driver: Hardware acceleration'
)
conflicts=('windsurf')
provides=('windsurf' 'devin-desktop')
options=('!strip')
source=(
"windsurf-${pkgver}.deb::https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/w/windsurf/Windsurf-linux-x64-${pkgver}.deb"
"devin-desktop-${pkgver}.deb::https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/d/devin-desktop/Devin-linux-x64-${pkgver}.deb"
'code.sh::https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/raw/main/code.sh'
)
sha256sums=('bd740d4872aed1d56303e4d4342ec41f634fcc82bb1c12cd6c3e29546a0a13e6'
'5da1525b5fe804b9192c05e1cbf8d751d852e3717fb2787c7ffe98fd5d93e8c1')
noextract=("windsurf-${pkgver}.deb")
'bd740d4872aed1d56303e4d4342ec41f634fcc82bb1c12cd6c3e29546a0a13e6')
noextract=("devin-desktop-${pkgver}.deb")
build() {
bsdtar -xOf "${srcdir}/windsurf-${pkgver}.deb" data.tar.xz | tar -xJf -
bsdtar -xOf "${srcdir}/devin-desktop-${pkgver}.deb" data.tar.xz | tar -xJf -
# Fix paths
mv usr/share/{appdata,metainfo}
mv usr/share/zsh/{vendor-completions,site-functions}
# Launcher
_app=/usr/share/windsurf/resources/app
sed -e 's|code-flags|windsurf-flags|' \
_app=/usr/share/devin-desktop/resources/app
sed -e 's|code-flags|devin-desktop-flags|' \
-e "s|/usr/lib/code/out/cli.js|${_app}/out/cli.js|" \
-e "s|/usr/lib/code/code.mjs|--app=${_app}|" \
"${srcdir}/code.sh" > run.sh
# System binary replacements
ln -svf /usr/bin/fd usr/share/windsurf/resources/app/extensions/windsurf/bin/fd
ln -svf /usr/bin/rg usr/share/windsurf/resources/app/node_modules/@vscode/ripgrep/bin/rg
ln -svf /usr/bin/xdg-open usr/share/windsurf/resources/app/node_modules/open/xdg-open
ln -svf /usr/bin/fd usr/share/devin-desktop/resources/app/extensions/windsurf/bin/fd
ln -svf /usr/bin/rg usr/share/devin-desktop/resources/app/node_modules/@vscode/ripgrep/bin/rg
ln -svf /usr/bin/xdg-open usr/share/devin-desktop/resources/app/node_modules/open/xdg-open
# SVG Icon
install -Dm644 "usr/share/${pkgname}/resources/app/out/media/code-icon.svg" \
install -Dm644 "usr/share/devin-desktop/resources/app/out/media/code-icon.svg" \
"usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
}
package() {
cp -r --reflink=auto usr "${pkgdir}/usr"
sed "s|/usr/lib/\${name}/electron|/usr/share/windsurf/windsurf|" run.sh > run-safe.sh
install -Dm755 run-safe.sh "${pkgdir}/usr/bin/windsurf"
sed "s|/usr/lib/\${name}/electron|/usr/share/devin-desktop/devin-desktop|" run.sh > run-safe.sh
install -Dm755 run-safe.sh "${pkgdir}/usr/bin/devin-desktop"
}