84 lines
2.7 KiB
Bash
84 lines
2.7 KiB
Bash
# Maintainer: Chris Watson <cawatson1993@gmail.com>
|
|
|
|
pkgname=windsurf
|
|
pkgver=1.7.3
|
|
pkgrel=1
|
|
pkgdesc="The new purpose-built IDE to harness magic"
|
|
arch=('x86_64')
|
|
url="https://windsurf.com/"
|
|
license=('custom')
|
|
depends=(
|
|
'alsa-lib'
|
|
'bash'
|
|
'cairo'
|
|
'dbus'
|
|
'expat'
|
|
'fontconfig'
|
|
'gcc-libs'
|
|
'glibc>=2.28-4'
|
|
'gnupg'
|
|
'gtk3'
|
|
'libdrm'
|
|
'libnotify'
|
|
'libsecret'
|
|
'libx11'
|
|
'libxcb'
|
|
'libxcomposite'
|
|
'libxdamage'
|
|
'libxext'
|
|
'libxfixes'
|
|
'libxkbcommon'
|
|
'libxkbfile'
|
|
'libxrandr'
|
|
'libxss'
|
|
'libxtst'
|
|
'lsof'
|
|
'mesa'
|
|
'nspr'
|
|
'nss'
|
|
'shared-mime-info'
|
|
'xdg-utils'
|
|
)
|
|
optdepends=('glib2: Needed for move to trash functionality'
|
|
'org.freedesktop.secrets: Needed for settings sync'
|
|
'libdbusmenu-glib: Needed for KDE global menu'
|
|
'icu69: Needed for live share'
|
|
'vulkan-icd-loader: Vulkan support')
|
|
|
|
provides=('windsurf')
|
|
options=('!strip')
|
|
|
|
source=("https://windsurf-stable.codeiumdata.com/wVxQEIWkwPUEAGf3/apt/pool/main/w/windsurf/Windsurf-linux-x64-${pkgver}.deb")
|
|
|
|
sha256sums=('0d1bf6aaf7145383d366d87ae4926a74b5ee6b025b2e0e159a098111806dbcc5')
|
|
|
|
package() {
|
|
bsdtar -xf "data.tar.xz"
|
|
# Install main binaries
|
|
install -d "${pkgdir}/usr/share/${pkgname}"
|
|
mv "usr/share/${pkgname}" "${pkgdir}/usr/share/"
|
|
|
|
# Install binary launcher symbolic link
|
|
install -d "${pkgdir}/usr/bin"
|
|
ln -s /usr/share/windsurf/windsurf "${pkgdir}/usr/bin/${pkgname}"
|
|
# Install desktop entry files for application and URL handling
|
|
mv usr/share/applications "${pkgdir}/usr/share/applications"
|
|
# Install application metadata (AppStream metainfo)
|
|
install -Dm644 "usr/share/appdata/${pkgname}.appdata.xml" "${pkgdir}/usr/share/metainfo/com.codeium.${pkgname}.metainfo.xml"
|
|
install -Dm644 "usr/share/mime/packages/${pkgname}-workspace.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}-workspace.xml"
|
|
# KDE/GTK never look in 1024-px dirs; install smaller aliases too
|
|
local _icon="usr/share/pixmaps/${pkgname}.png"
|
|
|
|
# install the real file once (1024 px)
|
|
install -Dm644 "${_icon}" "${pkgdir}/usr/share/icons/hicolor/1024x1024/apps/${pkgname}.png"
|
|
|
|
# create 256 px & 128 px entries as symlinks to save space
|
|
for _sz in 256 128; do
|
|
install -d "${pkgdir}/usr/share/icons/hicolor/${_sz}x${_sz}/apps"
|
|
ln -s "/usr/share/icons/hicolor/1024x1024/apps/${pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/${_sz}x${_sz}/apps/${pkgname}.png"
|
|
done
|
|
# Shell completions
|
|
mv "usr/share/bash-completion" "${pkgdir}/usr/share/bash-completion"
|
|
install -Dm644 "usr/share/zsh/vendor-completions/_${pkgname}" "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
|
|
}
|