less padding on the icon
This commit is contained in:
parent
9efdd56735
commit
1104640075
1 changed files with 9 additions and 7 deletions
16
PKGBUILD
16
PKGBUILD
|
|
@ -3,19 +3,19 @@
|
||||||
pkgname=cursor-ide-bin
|
pkgname=cursor-ide-bin
|
||||||
pkgver=2.6.19
|
pkgver=2.6.19
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Cursor - AI-first coding environment (uses bundled Electron)'
|
pkgdesc='Cursor - The AI Code Editor (uses bundled Electron)'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://www.cursor.com"
|
url="https://www.cursor.com"
|
||||||
license=('LicenseRef-Cursor_EULA')
|
license=('LicenseRef-Cursor_EULA')
|
||||||
provides=('cursor')
|
provides=('cursor')
|
||||||
conflicts=('cursor-bin')
|
conflicts=('cursor-bin')
|
||||||
|
makedepends=('imagemagick')
|
||||||
|
|
||||||
depends=(
|
depends=(
|
||||||
'alsa-lib'
|
'alsa-lib'
|
||||||
'dbus'
|
'dbus'
|
||||||
'gcc-libs'
|
'gcc-libs'
|
||||||
'gtk3'
|
'gtk3'
|
||||||
'hicolor-icon-theme'
|
|
||||||
'libdrm'
|
'libdrm'
|
||||||
'libsecret'
|
'libsecret'
|
||||||
'libxkbfile'
|
'libxkbfile'
|
||||||
|
|
@ -57,11 +57,13 @@ package() {
|
||||||
install -Dm644 "$srcdir/cursor.desktop" \
|
install -Dm644 "$srcdir/cursor.desktop" \
|
||||||
"$pkgdir/usr/share/applications/cursor.desktop"
|
"$pkgdir/usr/share/applications/cursor.desktop"
|
||||||
|
|
||||||
# Install icon to hicolor for KDE/GNOME
|
# Rename pixmap icon and trim transparent padding to match other DE icons
|
||||||
local _icon="$pkgdir/usr/share/pixmaps/co.anysphere.cursor.png"
|
if [[ -f "$pkgdir/usr/share/pixmaps/co.anysphere.cursor.png" ]]; then
|
||||||
if [[ -f "$_icon" ]]; then
|
magick "$pkgdir/usr/share/pixmaps/co.anysphere.cursor.png" \
|
||||||
install -Dm644 "$_icon" \
|
-trim +repage -resize 1024x1024 \
|
||||||
"$pkgdir/usr/share/icons/hicolor/512x512/apps/cursor.png"
|
"$pkgdir/usr/share/pixmaps/cursor.png"
|
||||||
|
chmod 644 "$pkgdir/usr/share/pixmaps/cursor.png"
|
||||||
|
rm "$pkgdir/usr/share/pixmaps/co.anysphere.cursor.png"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install launcher
|
# Install launcher
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue