Compare commits

...

3 commits

Author SHA1 Message Date
a22687183f
upgpkg: sublime-text-dev 4.4141-3
Added GNOME specific StartupWMClass option back to desktop file
Removed desktop file from /opt/sublime_text directory
2022-12-10 09:58:54 +01:00
868928210d
upgpkg: sublime-text-4 4.4143-3
Added GNOME specific StartupWMClass option back to desktop file
Removed desktop file from /opt/sublime_text directory
2022-12-10 09:58:00 +01:00
a452cf9a45
upgpkg: sublime-text-3 3.3211-3
Improved formatting
Updated description to point out that is a legacy version now
Added GNOME specific StartupWMClass option back to desktop file
Removed desktop file from /opt/sublime_text_3 directory
2022-12-10 09:56:28 +01:00
6 changed files with 21 additions and 15 deletions

View file

@ -1,7 +1,7 @@
pkgbase = sublime-text-3
pkgdesc = Sophisticated text editor for code, html and prose - stable build
pkgdesc = Sophisticated text editor for code, html and prose (legacy version)
pkgver = 3.3211
pkgrel = 2
pkgrel = 3
url = https://www.sublimetext.com/3
install = sublime-text-3.install
arch = x86_64

View file

@ -3,8 +3,8 @@
pkgname=sublime-text-3
pkgver=3.3211
pkgrel=2
pkgdesc="Sophisticated text editor for code, html and prose - stable build"
pkgrel=3
pkgdesc='Sophisticated text editor for code, html and prose (legacy version)'
arch=('x86_64')
url='https://www.sublimetext.com/3'
license=('custom')
@ -17,13 +17,14 @@ package() {
cd "${srcdir}"
# Adjust naming
sed -i 's#/opt/sublime_text/sublime_text#/opt/sublime_text_3/sublime_text#g' "sublime_text_3/sublime_text.desktop"
sed -i 's#Sublime Text#Sublime Text 3#g' "sublime_text_3/sublime_text.desktop"
sed -i 's#sublime-text#sublime-text-3#g' "sublime_text_3/sublime_text.desktop"
sed -i 's#/opt/sublime_text/sublime_text#/opt/sublime_text_3/sublime_text#g' 'sublime_text_3/sublime_text.desktop'
sed -i 's#Sublime Text#Sublime Text 3#g' 'sublime_text_3/sublime_text.desktop'
sed -i 's#sublime-text#sublime-text-3#g' 'sublime_text_3/sublime_text.desktop'
# Install sublime text 3
install -dm755 "${pkgdir}/opt"
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3"
cp --preserve=mode -r 'sublime_text_3' "${pkgdir}/opt/sublime_text_3"
rm -f "${pkgdir}/opt/sublime_text_3/sublime_text.desktop"
# Install icons
for res in 128x128 16x16 256x256 32x32 48x48; do
@ -32,11 +33,12 @@ package() {
done
# Install desktop entry and executable
sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' "sublime_text_3/sublime_text.desktop"
sed -i 's#/opt/sublime_text_3/sublime_text#/usr/bin/subl3#g' 'sublime_text_3/sublime_text.desktop'
sed -i '\#^Icon=sublime-text-3#a StartupWMClass=sublime-text-3' 'sublime_text_3/sublime_text.desktop'
install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text_3.desktop"
install -Dm644 'sublime_text_3/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text_3.desktop"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl3"
ln -s '/opt/sublime_text_3/sublime_text' "${pkgdir}/usr/bin/subl3"
}

View file

@ -1,7 +1,7 @@
pkgbase = sublime-text-4
pkgdesc = Sophisticated text editor for code, html and prose - stable build
pkgver = 4.4143
pkgrel = 2
pkgrel = 3
url = https://www.sublimetext.com/download
arch = x86_64
arch = aarch64

View file

@ -2,7 +2,7 @@
pkgname=sublime-text-4
pkgver=4.4143
pkgrel=2
pkgrel=3
pkgdesc='Sophisticated text editor for code, html and prose - stable build'
arch=('x86_64' 'aarch64')
url='https://www.sublimetext.com/download'
@ -22,6 +22,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"
@ -29,6 +30,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"

View file

@ -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

View file

@ -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"