All checks were successful
Update checker - cursor / check-update (push) Successful in 6s
27 lines
943 B
Bash
27 lines
943 B
Bash
_cursor_version=1.3.0
|
|
_cursor_url=https://downloads.cursor.com/production/410000a83355c025daba0c6156955bf08687d081/linux/x64/Cursor-1.3.0-x86_64.AppImage
|
|
|
|
pkgname=cursor
|
|
pkgver="${_cursor_version}"
|
|
pkgrel=1
|
|
pkgdesc='Cursor - The AI Code Editor (extracted from Appimage)'
|
|
arch=('x86_64')
|
|
url='https://www.cursor.com/'
|
|
license=('custom:Proprietary')
|
|
source_x86_64=("cursor-${_cursor_version}.Appimage::${_cursor_url}")
|
|
sha512sums_x86_64=('SKIP')
|
|
noextract=("${source[@]%%::*}")
|
|
options=('!debug')
|
|
|
|
prepare() {
|
|
chmod +x "${srcdir}/cursor-${_cursor_version}.Appimage"
|
|
"${srcdir}/cursor-${_cursor_version}.Appimage" --appimage-extract >/dev/null
|
|
sed 's@AppRun@/usr/bin/cursor@g' -i "${srcdir}/squashfs-root/cursor.desktop"
|
|
sed 's@co.anysphere.cursor@cursor@g' -i "${srcdir}/squashfs-root/cursor.desktop"
|
|
}
|
|
|
|
package() {
|
|
install -dm 755 "${pkgdir}/usr"
|
|
cp -r --no-preserve=ownership --preserve=mode "${srcdir}/squashfs-root/usr" "${pkgdir}"
|
|
}
|