Package Details: cursor-appimage 0.44.8-1

Git Clone URL: https://aur.archlinux.org/cursor-appimage.git (read-only, click to copy)
Package Base: cursor-appimage
Description: Write, edit, and chat about your code with GPT. (AppImage)
Upstream URL: https://cursor.so
Licenses: custom
Submitter: TimeTrap
Maintainer: Menghuan1918
Last Packager: Menghuan1918
Votes: 11
Popularity: 0.21
First Submitted: 2023-08-27 09:58 (UTC)
Last Updated: 2024-12-27 02:16 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

usama commented on 2023-08-26 10:38 (UTC) (edited on 2023-08-26 10:39 (UTC) by usama)

Wake up bae, new version of cursor dropped.

pkgname=cursor-bin
_pkgname=cursor
pkgver=0.8.4
pkgrel=1
pkgdesc="Write, edit, and chat about your code with GPT-3.(AppImage)"
arch=('x86_64')
url="https://cursor.so"
license=('custom')
options=('!strip')
depends=('hicolor-icon-theme' 'zlib')
source=("${_pkgname}-${pkgver}.AppImage::https://dl.todesktop.com/230313mzl4w4u92/linux/appImage/x64")
sha256sums=('072226c8bb837d512c9c573f6da2bdfffedec146db2b6fa569c38b58ed364dbd')
_install_path="/opt/appimages"

prepare() {
    chmod a+x "${_pkgname}-${pkgver}.AppImage"
    "./${_pkgname}-${pkgver}.AppImage" --appimage-extract > /dev/null
    sed 's/AppRun/\/opt\/appimages\/Cursor.AppImage/g' -i "${srcdir}/squashfs-root/cursor.desktop"
    sed 's/Exec=\/opt\/appimages\/Cursor.AppImage/Exec=\/opt\/appimages\/cursor.AppImage/g' -i "${srcdir}/squashfs-root/cursor.desktop"
    sed 's/StartupWMClass=Cursor/StartupWMClass=cursor/g' -i "${srcdir}/squashfs-root/cursor.desktop"

}
package() {
    install -Dm755 "${srcdir}/${_pkgname}-${pkgver}.AppImage" "${pkgdir}/${_install_path}/${_pkgname}.AppImage"
    for _icons in 32x32 64x64 128x128 256x256 512x512;do
        install -Dm645 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/cursor.png" "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/cursor.png"
    done

    install -Dm755 "${srcdir}/squashfs-root/cursor.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}

As usual just install it using

makepkg -si

jalf commented on 2023-08-22 12:56 (UTC) (edited on 2023-08-22 12:56 (UTC) by jalf)

This was my solution while the author fixes the package

# Maintainer: Jingu <xiuluo dot android at gmail dot com>
# Contributor: TimeTrap <zhaoyuanpan at gmail dot com>
https://dl.todesktop.com/230313mzl4w4u92/linux/appImage/x64
pkgname=cursor-bin
_pkgname=cursor
pkgver=0.7.3
pkgrel=1
pkgdesc="Write, edit, and chat about your code with GPT-4.(AppImage)"
arch=('x86_64')
url="https://cursor.so"
license=('custom')
options=('!strip')
depends=('hicolor-icon-theme' 'zlib')
source=("${_pkgname}-${pkgver}.AppImage::https://dl.todesktop.com/230313mzl4w4u92/linux/appImage/x64")
sha256sums=('a30805a3ee76f2beda66b58cc917f754ab7b4e12ac600e67d8bd0e055724e53e')
_install_path="/opt/appimages"

prepare() {
    chmod a+x "${_pkgname}-${pkgver}.AppImage"
    "./${_pkgname}-${pkgver}.AppImage" --appimage-extract > /dev/null
    sed 's/AppRun/\/opt\/appimages\/cursor.AppImage/g' -i "${srcdir}/squashfs-root/${_pkgname}.desktop"
}
package() {
    install -Dm755 "${srcdir}/${_pkgname}-${pkgver}.AppImage" "${pkgdir}/${_install_path}/${_pkgname}.AppImage"
    for _icons in 32x32 64x64 128x128 256x256 512x512;do
        install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png"
    done
    install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}

r3f commented on 2023-08-21 17:51 (UTC)

awesome. thx

usama commented on 2023-08-20 12:39 (UTC) (edited on 2023-08-26 10:39 (UTC) by usama)

Ok seeing as the mantainer has neglected this package here is the modified PKGBUILD that I modified to the version 1.7.3 that works

EDIT: Look my latest comment

r3f commented on 2023-08-07 15:15 (UTC)

The maintainer has stopped updating this package.

zxeoc commented on 2023-07-31 07:09 (UTC)

I think this is trying to download the latest pkg and validating it as 0.2.31-1. That's why the validity check fails.

r3f commented on 2023-05-29 05:13 (UTC)

:: Downloading PKGBUILDs... PKGBUILDs up to date nothing new to review fetching devel info... ==> Making package: cursor-bin 0.2.21-1 (Mon 29 May 2023 11:13:10 AM +06) ==> Retrieving sources... -> Found Cursor-0.2.21.AppImage ==> Validating source files with sha256sums... Cursor-0.2.21.AppImage ... FAILED ==> ERROR: One or more files did not pass the validity check! error: failed to download sources for 'cursor-bin-0.2.21-1': error: packages failed to build: cursor-bin-0.2.21-1

r3f commented on 2023-04-17 19:13 (UTC)

==> ERROR: One or more files did not pass the validity check! error: failed to download sources for 'cursor-bin-0.2.2-2': error: packages failed to build: cursor-bin-0.2.2-2

TimeTrap commented on 2023-04-12 03:26 (UTC)

@Arial I am unable to reproduce this problem. Please check for permission related issues.

Arial commented on 2023-04-12 03:06 (UTC) (edited on 2023-04-12 03:25 (UTC) by Arial)

Thanks for your packaging. Need some help:

==> Making package: cursor-bin 0.2.2-2 (2023年04月12日 星期三 10时52分56秒)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found Cursor-0.2.2.AppImage
==> Validating source files with sha256sums...
    Cursor-0.2.2.AppImage ... Passed
==> Extracting sources...
==> Starting prepare()...
total 4 drwxr-xr-x 1 k k 42 4月12日 10:52 . drwxr-xr-x 1 k k 88 4月12日 10:52 .. lrwxrwxrwx 1 k k 54 4月12日 10:52 Cursor-0.2.2.AppImage -> /home/k/Downloads/aur/cursor-bin/Cursor-0.2.2.AppImage
/home/k/Downloads/aur/cursor-bin/PKGBUILD: line 19: ./Cursor-0.2.2.AppImage: Permission denied
==> ERROR: A failure occurred in prepare().
    Aborting...

I tried to run this AppImage:

$ ./Cursor-0.2.2.AppImage           
zsh: permission denied: ./Cursor-0.2.2.AppImage

It should be an issue with the AppImage itself, not with the packaging.