2019-11-13 15:32:43 +01:00
|
|
|
# Maintainer: marcospb19 <marcospb19@hotmail.com>
|
2018-10-15 18:36:44 +02:00
|
|
|
|
2020-09-13 15:49:21 +02:00
|
|
|
pkgname=sublime-text-3
|
2019-11-13 15:32:43 +01:00
|
|
|
pkgver=3.3211
|
2020-09-13 15:49:21 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Sophisticated text editor for code, html and prose - stable build"
|
2018-10-15 18:36:44 +02:00
|
|
|
arch=('x86_64')
|
|
|
|
url='https://www.sublimetext.com/3'
|
|
|
|
license=('custom')
|
|
|
|
depends=('libpng' 'gtk2')
|
2020-09-13 15:49:21 +02:00
|
|
|
|
|
|
|
replaces=('sublime-text-3-imfix')
|
|
|
|
|
|
|
|
conflicts=('sublime-text-4-dev'
|
2021-07-19 02:45:58 +02:00
|
|
|
'sublime-text-4'
|
2020-09-13 15:49:21 +02:00
|
|
|
'sublime-text-3-imfix'
|
|
|
|
'sublime-text-imfix'
|
|
|
|
'sublime-text-nightly'
|
|
|
|
'sublime-text-dev'
|
|
|
|
'sublime-text2')
|
|
|
|
|
2021-07-19 02:45:58 +02:00
|
|
|
provides=('sublime-text')
|
2020-09-13 15:49:21 +02:00
|
|
|
|
2018-10-15 18:36:44 +02:00
|
|
|
source=(
|
|
|
|
"https://download.sublimetext.com/sublime_text_3_build_${pkgver:2}_x64.tar.bz2"
|
|
|
|
'LICENSE'
|
|
|
|
)
|
2019-11-13 15:46:08 +01:00
|
|
|
sha256sums=('0b3c8ca5e6df376c3c24a4b9ac2e3b391333f73b229bc6e87d0b4a5f636d74ee'
|
2020-09-13 15:49:21 +02:00
|
|
|
'339dbd1b6ae3e699809afcdd6c690299e6fa0d385aa2ef658a52d336a3f8107f')
|
2018-10-15 18:36:44 +02:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}"
|
2019-11-13 16:13:38 +01:00
|
|
|
|
2018-10-15 18:36:44 +02:00
|
|
|
# Install sublime text 3
|
|
|
|
install -dm755 "${pkgdir}/opt"
|
|
|
|
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3"
|
2019-11-13 16:13:38 +01:00
|
|
|
|
2018-10-15 18:36:44 +02:00
|
|
|
# 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
|
2019-11-13 16:13:38 +01:00
|
|
|
|
2018-10-15 18:36:44 +02:00
|
|
|
# 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"
|
2019-03-17 17:31:11 +01:00
|
|
|
install -dm755 "${pkgdir}/usr/bin"
|
|
|
|
ln -s "/opt/sublime_text_3/sublime_text" "${pkgdir}/usr/bin/subl"
|
2019-11-13 16:13:38 +01:00
|
|
|
|
2018-10-15 18:36:44 +02:00
|
|
|
# Install license file
|
|
|
|
install -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|