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>
65 lines
2.2 KiB
Bash
65 lines
2.2 KiB
Bash
# Maintainer: Chris Watson <cawatson1993@gmail.com>
|
|
|
|
pkgname=devin-desktop
|
|
pkgver=2.3.15
|
|
pkgrel=1
|
|
pkgdesc='Devin - the AI software engineer IDE'
|
|
arch=('x86_64')
|
|
url='https://devin.ai/'
|
|
license=('LicenseRef-Devin')
|
|
depends=(
|
|
'alsa-lib'
|
|
'dbus'
|
|
'fd'
|
|
'gnupg'
|
|
'libnotify'
|
|
'libsecret'
|
|
'libxkbfile'
|
|
'libxss'
|
|
'ripgrep'
|
|
'xdg-utils'
|
|
)
|
|
optdepends=(
|
|
'glib2: Move to trash functionality'
|
|
'libdbusmenu-glib: KDE global menu'
|
|
'lsof: Terminal splitting'
|
|
'org.freedesktop.secrets: Sync settings'
|
|
'vulkan-driver: Hardware acceleration'
|
|
)
|
|
conflicts=('windsurf')
|
|
provides=('windsurf' 'devin-desktop')
|
|
options=('!strip')
|
|
source=(
|
|
"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'
|
|
'bd740d4872aed1d56303e4d4342ec41f634fcc82bb1c12cd6c3e29546a0a13e6')
|
|
noextract=("devin-desktop-${pkgver}.deb")
|
|
|
|
build() {
|
|
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/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/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/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/devin-desktop/devin-desktop|" run.sh > run-safe.sh
|
|
install -Dm755 run-safe.sh "${pkgdir}/usr/bin/devin-desktop"
|
|
}
|