diff --git a/.SRCINFO b/.SRCINFO index 50db91a..6f9e977 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,10 +1,10 @@ -pkgbase = windsurf - pkgdesc = The new purpose-built IDE to harness magic +pkgbase = devin-desktop + pkgdesc = Devin - the AI software engineer IDE pkgver = 2.3.15 pkgrel = 1 - url = https://windsurf.com/ + url = https://devin.ai/ arch = x86_64 - license = LicenseRef-Windsurf Editor + license = LicenseRef-Devin depends = alsa-lib depends = dbus depends = fd @@ -20,11 +20,14 @@ pkgbase = windsurf optdepends = lsof: Terminal splitting optdepends = org.freedesktop.secrets: Sync settings optdepends = vulkan-driver: Hardware acceleration - noextract = windsurf-2.2.17.deb + provides = windsurf + provides = devin-desktop + conflicts = windsurf + noextract = devin-desktop-2.3.15.deb options = !strip - source = windsurf-2.2.17.deb::https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/w/windsurf/Windsurf-linux-x64-2.3.15.deb + source = devin-desktop-2.3.15.deb::https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/d/devin-desktop/Devin-linux-x64-2.3.15.deb source = code.sh::https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/raw/main/code.sh sha256sums = bd740d4872aed1d56303e4d4342ec41f634fcc82bb1c12cd6c3e29546a0a13e6 sha256sums = bd740d4872aed1d56303e4d4342ec41f634fcc82bb1c12cd6c3e29546a0a13e6 -pkgname = windsurf +pkgname = devin-desktop diff --git a/PKGBUILD b/PKGBUILD index 7333a2f..7f0d923 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,12 +1,12 @@ # Maintainer: Chris Watson -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" } diff --git a/cleanup.sh b/cleanup.sh index 0fb1199..450a5c9 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -1,5 +1,5 @@ rm -f .SRCINFO rm -f code.sh -rm -f windsurf*.tar.zst -rm -f windsurf*.deb +rm -f devin-desktop*.tar.zst +rm -f devin-desktop*.deb rm -rf src \ No newline at end of file diff --git a/update-windsurf.sh b/update-windsurf.sh index 82bfec5..3bd92bd 100755 --- a/update-windsurf.sh +++ b/update-windsurf.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Windsurf AUR package updater +# Devin AUR package updater set -e @@ -18,9 +18,9 @@ current_ver=$(grep -E '^pkgver=' "$PKGBUILD" | cut -d= -f2) echo "Current PKGBUILD version: $current_ver" # Fetch latest version from apt repository -echo "Checking Windsurf repository..." +echo "Checking Devin repository..." latest_info=$(curl -s "https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/dists/stable/main/binary-amd64/Packages.gz" | zcat) -latest_ver=$(echo "$latest_info" | grep -A1 "Package: windsurf" | grep "Version:" | head -1 | sed 's/Version: \([0-9.]*\).*/\1/') +latest_ver=$(echo "$latest_info" | grep -A1 "Package: devin-desktop" | grep "Version:" | head -1 | sed 's/Version: \([0-9.]*\).*/\1/') if [[ -z "$latest_ver" ]]; then echo -e "${RED}Error: Could not fetch latest version${NC}" @@ -45,7 +45,7 @@ else fi # Download and calculate SHA256 -deb_url="https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/w/windsurf/Windsurf-linux-x64-${latest_ver}.deb" +deb_url="https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/d/devin-desktop/Devin-linux-x64-${latest_ver}.deb" echo "" echo "Downloading ${latest_ver} for SHA256 verification..." echo "URL: $deb_url" @@ -66,7 +66,7 @@ echo "Proposed changes:" echo " PKGBUILD: pkgver=$latest_ver" echo " PKGBUILD: sha256sums=('$new_sha256' ...)" echo " .SRCINFO: pkgver = $latest_ver" -echo " .SRCINFO: source = ...Windsurf-linux-x64-${latest_ver}.deb" +echo " .SRCINFO: source = ...Devin-linux-x64-${latest_ver}.deb" echo " .SRCINFO: sha256sums = $new_sha256" echo "" @@ -87,7 +87,7 @@ sed -i "s/sha256sums=('[^']*'/sha256sums=('$new_sha256'/" "$PKGBUILD" # Update .SRCINFO echo "Updating .SRCINFO..." sed -i "s/pkgver = .*/pkgver = $latest_ver/" "$SRCINFO" -sed -i "s|Windsurf-linux-x64-[0-9.]*\.deb|Windsurf-linux-x64-${latest_ver}.deb|" "$SRCINFO" +sed -i "s|Devin-linux-x64-[0-9.]*\.deb|Devin-linux-x64-${latest_ver}.deb|" "$SRCINFO" sed -i "s/sha256sums = [a-f0-9]*/sha256sums = $new_sha256/" "$SRCINFO" echo -e "${GREEN}Updated to version $latest_ver${NC}"