Compare commits

...

6 commits

Author SHA1 Message Date
2d01d31fc2 upgpkg: sublime-text-3 3.3211-5
Fix title bar icon by using a launcher script instead of symlink
2024-04-08 22:42:14 +02:00
ee5addd4d0 sublime-text-3: Refactor package function
pkgrel bump not needed as same package is produced
2022-12-12 12:59:41 +01:00
0079614e42 upgpkg: sublime-text-3 3.3211-4
Use correct name for WMClass in desktop file
2022-12-12 12:02:06 +01:00
e468a12eb1 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
da6d580502 Update indentation and formatting 2022-11-15 17:34:12 +01:00
2f644f6229 upgpkg: sublime-text-3 3.3211-2
Allow installation next to sublime-text
2022-11-15 17:16:35 +01:00
6 changed files with 58 additions and 70 deletions

View file

@ -1,24 +1,16 @@
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 = 1
pkgrel = 5
url = https://www.sublimetext.com/3
install = sublime-text-3.install
arch = x86_64
license = custom
depends = libpng
depends = gtk2
provides = sublime-text
conflicts = sublime-text-4-dev
conflicts = sublime-text-4
conflicts = sublime-text-3-imfix
conflicts = sublime-text-imfix
conflicts = sublime-text-nightly
conflicts = sublime-text-dev
conflicts = sublime-text2
replaces = sublime-text-3-imfix
source = https://download.sublimetext.com/sublime_text_3_build_3211_x64.tar.bz2
source = LICENSE
sha256sums = 0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee
sha256sums = 339dbd1b6ae3e699809afcdd6c690299e6fa0d385aa2ef658a52d336a3f8107f
source = sublime-text-3.sh
sha512sums = a6a068119eff95c5360e9ccbe1d845e7a93e4ad13b3659073752a7bd0e87f4691555820185514875649e677a4e8702e2338f74f5584fc80f69c16b323685d6f1
sha512sums = ac56e9b7dddaebb3d222795cfc644109c93cc3f79695b8f9ee56022c74fe04a1134dd54cab07c74ff1f96b783cb3dbc026c16095552f1d2dd83115ea274dc2e9
pkgname = sublime-text-3

4
.gitignore vendored
View file

@ -1,4 +0,0 @@
/*.tar.bz2
/*.pkg.tar.xz
/pkg
/src

13
LICENSE
View file

@ -1,13 +0,0 @@
Maintainer note:
Sublime Text is free to use, if you want access to the newer builds, with the package
`sublime-text-4-dev` or `sublime-text-dev`, you'll need a paid license.
Buying a license also supports the development of the editor.
---
Sublime Text may be downloaded and evaluated for free, however a license must be purchased for
continued use. Licenses are per-user, rather than per-machine, so you can enjoy Sublime Text on as
many computers and operating systems as you wish with your license.
For more information, please visit https://www.sublimetext.com/buy

View file

@ -1,54 +1,46 @@
# Maintainer: marcospb19 <marcospb19@hotmail.com>
# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: marcospb19 <marcospb19@hotmail.com>
pkgname=sublime-text-3
pkgver=3.3211
pkgrel=1
pkgdesc="Sophisticated text editor for code, html and prose - stable build"
pkgrel=5
pkgdesc='Sophisticated text editor for code, html and prose (legacy version)'
arch=('x86_64')
url='https://www.sublimetext.com/3'
license=('custom')
depends=('libpng' 'gtk2')
install="${pkgname}.install"
source=("https://download.sublimetext.com/sublime_text_3_build_${pkgver:2}_x64.tar.bz2"
"${pkgname}.sh")
sha512sums=('a6a068119eff95c5360e9ccbe1d845e7a93e4ad13b3659073752a7bd0e87f4691555820185514875649e677a4e8702e2338f74f5584fc80f69c16b323685d6f1'
'ac56e9b7dddaebb3d222795cfc644109c93cc3f79695b8f9ee56022c74fe04a1134dd54cab07c74ff1f96b783cb3dbc026c16095552f1d2dd83115ea274dc2e9')
replaces=('sublime-text-3-imfix')
prepare() {
sed -i -e "s|@ST_PATH@|/opt/sublime_text_3|g" "${pkgname}.sh"
conflicts=('sublime-text-4-dev'
'sublime-text-4'
'sublime-text-3-imfix'
'sublime-text-imfix'
'sublime-text-nightly'
'sublime-text-dev'
'sublime-text2')
provides=('sublime-text')
source=(
"https://download.sublimetext.com/sublime_text_3_build_${pkgver:2}_x64.tar.bz2"
'LICENSE'
)
sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee'
'339dbd1b6ae3e699809afcdd6c690299e6fa0d385aa2ef658a52d336a3f8107f')
# Adjust naming in desktop entry
sed -i -e 's#Sublime Text#Sublime Text 3#g' 'sublime_text_3/sublime_text.desktop'
sed -i -e 's#sublime-text#sublime-text-3#g' 'sublime_text_3/sublime_text.desktop'
sed -i -e 's#/opt/sublime_text/sublime_text#/usr/bin/subl3#g' 'sublime_text_3/sublime_text.desktop'
sed -i -e '\#^StartupNotify=#a StartupWMClass=subl3' 'sublime_text_3/sublime_text.desktop'
}
package() {
cd "${srcdir}"
# Install sublime text 3
install -dm755 "${pkgdir}/opt"
cp --preserve=mode -r 'sublime_text_3' "${pkgdir}/opt/sublime_text_3"
rm -f "${pkgdir}/opt/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"
# Install icons
for res in 128x128 16x16 256x256 32x32 48x48; do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text-3.png"
done
# Install icons
for res in 128x128 16x16 256x256 32x32 48x48; do
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
ln -s "/opt/sublime_text_3/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png"
done
# Install desktop entry and executable
install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 'sublime_text_3/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text_3.desktop"
# Install desktop entry and executable
install -dm755 "${pkgdir}/usr/share/applications"
install -Dm644 "sublime_text_3/sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text.desktop"
sed -i 's#/opt/sublime_text/sublime_text#subl#g' "${pkgdir}/usr/share/applications/sublime_text.desktop"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl"
# Install license file
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -dm755 "${pkgdir}/usr/bin"
install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/subl3"
}

18
sublime-text-3.install Normal file
View file

@ -0,0 +1,18 @@
post_install() {
cat << _EOF
==> sublime-text-3 install note:
------------------------------------------------------------------------------
Since this is the last version of Sublime Text 3, you might want to disable
in-application reminders about new Sublime Text versions (reportedly only
works as a licensed user).
Add the following setting to your User Preferences file:
"update_check": false
_EOF
}
post_upgrade() {
post_install
}

3
sublime-text-3.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh
exec @ST_PATH@/sublime_text "$@"