From a22687183f9bc070edc83e9f62c46fdc8f7b7eb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Sat, 10 Dec 2022 09:58:54 +0100 Subject: [PATCH] upgpkg: sublime-text-dev 4.4141-3 Added GNOME specific StartupWMClass option back to desktop file Removed desktop file from /opt/sublime_text directory --- sublime-text-dev/.SRCINFO | 2 +- sublime-text-dev/PKGBUILD | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sublime-text-dev/.SRCINFO b/sublime-text-dev/.SRCINFO index 14ff8a3..e3a2d43 100644 --- a/sublime-text-dev/.SRCINFO +++ b/sublime-text-dev/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = sublime-text-dev pkgdesc = Sophisticated text editor for code, html and prose - dev build pkgver = 4.4141 - pkgrel = 2 + pkgrel = 3 url = https://www.sublimetext.com/dev install = sublime-text-dev.install arch = x86_64 diff --git a/sublime-text-dev/PKGBUILD b/sublime-text-dev/PKGBUILD index a7bd0e2..9c59aa6 100644 --- a/sublime-text-dev/PKGBUILD +++ b/sublime-text-dev/PKGBUILD @@ -4,7 +4,7 @@ pkgname=sublime-text-dev pkgver=4.4141 -pkgrel=2 +pkgrel=3 pkgdesc='Sophisticated text editor for code, html and prose - dev build' arch=('x86_64' 'aarch64') url='https://www.sublimetext.com/dev' @@ -25,6 +25,7 @@ package() { install -dm755 "${pkgdir}/opt" cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text" + rm -f "${pkgdir}/opt/sublime_text/sublime_text.desktop" for res in 128x128 16x16 256x256 32x32 48x48; do install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps" @@ -32,6 +33,7 @@ package() { done sed -i 's#/opt/sublime_text/sublime_text#/usr/bin/subl#g' 'sublime_text/sublime_text.desktop' + sed -i '\#^Icon=sublime-text#a StartupWMClass=sublime-text' 'sublime_text/sublime_text.desktop' install -dm755 "${pkgdir}/usr/share/applications" install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop"