Compare commits
34 commits
main
...
packages/s
Author | SHA1 | Date | |
---|---|---|---|
2d8d29f470 | |||
decd3bb57d | |||
8fc27501e6 | |||
818f276ede | |||
2fc9fda538 | |||
48cd1fc959 | |||
1f865aaec4 | |||
fe3a0ccbc6 | |||
c748c0a126 | |||
510be1e84c | |||
f0c5c930c4 | |||
a7ed6ad3ff | |||
c75b07546b | |||
4338e18ab6 | |||
63e3f1d39d | |||
1353578b27 | |||
54a0696ac7 | |||
01c7704848 | |||
b56184a3dc | |||
625af080b9 | |||
8fbb14c9f1 | |||
336c2091a9 | |||
aa6764ecdd | |||
60ce0a8dc8 | |||
6d42bbcc39 | |||
cb51ccde28 | |||
c36ec501b2 | |||
c9a0c85795 | |||
495a213f3e | |||
8fc536c1b7 | |||
ff94285c6b | |||
772a7edcfa | |||
efacae5c95 | |||
4812b6a7e4 |
4 changed files with 36 additions and 54 deletions
15
.SRCINFO
15
.SRCINFO
|
@ -1,6 +1,6 @@
|
||||||
pkgbase = sublime-text-dev
|
pkgbase = sublime-text-dev
|
||||||
pkgdesc = Sophisticated text editor for code, html and prose - dev build
|
pkgdesc = Sophisticated text editor for code, html and prose - dev build
|
||||||
pkgver = 4.4138
|
pkgver = 4.4183
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://www.sublimetext.com/dev
|
url = https://www.sublimetext.com/dev
|
||||||
install = sublime-text-dev.install
|
install = sublime-text-dev.install
|
||||||
|
@ -9,14 +9,13 @@ pkgbase = sublime-text-dev
|
||||||
license = custom
|
license = custom
|
||||||
depends = libpng
|
depends = libpng
|
||||||
depends = gtk3
|
depends = gtk3
|
||||||
optdepends = gksu: sudo-save support
|
|
||||||
provides = sublime-text
|
provides = sublime-text
|
||||||
conflicts = sublime-text
|
conflicts = sublime-text
|
||||||
source = sublime_text.desktop
|
source = sublime-text-dev.sh
|
||||||
sha256sums = e991aac5207655dadf69c6f74c194c80009fb9767d7710337f586908969aa9cf
|
sha512sums = ac56e9b7dddaebb3d222795cfc644109c93cc3f79695b8f9ee56022c74fe04a1134dd54cab07c74ff1f96b783cb3dbc026c16095552f1d2dd83115ea274dc2e9
|
||||||
source_x86_64 = https://download.sublimetext.com/sublime_text_build_4138_x64.tar.xz
|
source_x86_64 = sublime_text_dev_4_4183_1_x64.tar.xz::https://download.sublimetext.com/sublime_text_build_4183_x64.tar.xz
|
||||||
sha256sums_x86_64 = 0c1c5660ed8b39ed7409d13879b87627d03ec29f2782f71e5791ae4bbe1350b7
|
sha512sums_x86_64 = f7218a7486b22937618e9eaa20fbc4d47d8d58a5bdef1579c1bd68aeca147c3195c34b988675d317c00c2be529e56c5e2ff01b5a9f64f9755e1d6bd89f5b21f0
|
||||||
source_aarch64 = https://download.sublimetext.com/sublime_text_build_4138_arm64.tar.xz
|
source_aarch64 = sublime_text_dev_4_4183_1_arm64.tar.xz::https://download.sublimetext.com/sublime_text_build_4183_arm64.tar.xz
|
||||||
sha256sums_aarch64 = def23facff20b497631726a8aeb1b3a572c2a8abd9a2179b639f56af74feb581
|
sha512sums_aarch64 = 329a54202c5837832f5666de8e32de53b80fbb61e3c1fcd424e12de8d793c5ddb7f1179053a0d60f19882895c24445f38c64f758dc2ca953d646e0dc19ea626a
|
||||||
|
|
||||||
pkgname = sublime-text-dev
|
pkgname = sublime-text-dev
|
||||||
|
|
48
PKGBUILD
48
PKGBUILD
|
@ -3,40 +3,44 @@
|
||||||
# Contributor: realitygaps <realitygaps at yahoo dot com>
|
# Contributor: realitygaps <realitygaps at yahoo dot com>
|
||||||
|
|
||||||
pkgname=sublime-text-dev
|
pkgname=sublime-text-dev
|
||||||
pkgver=4.4138
|
pkgver=4.4183
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Sophisticated text editor for code, html and prose - dev build"
|
pkgdesc='Sophisticated text editor for code, html and prose - dev build'
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
url="https://www.sublimetext.com/dev"
|
url='https://www.sublimetext.com/dev'
|
||||||
license=('custom')
|
license=('custom')
|
||||||
depends=('libpng' 'gtk3')
|
depends=('libpng' 'gtk3')
|
||||||
optdepends=('gksu: sudo-save support')
|
|
||||||
conflicts=('sublime-text')
|
conflicts=('sublime-text')
|
||||||
provides=('sublime-text')
|
provides=('sublime-text')
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
|
|
||||||
source=('sublime_text.desktop')
|
source=("${pkgname}.sh")
|
||||||
source_x86_64=("https://download.sublimetext.com/sublime_text_build_${pkgver:2}_x64.tar.xz")
|
source_x86_64=("${pkgname//-/_}_${pkgver/./_}_${pkgrel}_x64.tar.xz::https://download.sublimetext.com/sublime_text_build_${pkgver:2}_x64.tar.xz")
|
||||||
source_aarch64=("https://download.sublimetext.com/sublime_text_build_${pkgver:2}_arm64.tar.xz")
|
source_aarch64=("${pkgname//-/_}_${pkgver/./_}_${pkgrel}_arm64.tar.xz::https://download.sublimetext.com/sublime_text_build_${pkgver:2}_arm64.tar.xz")
|
||||||
|
|
||||||
sha256sums=('e991aac5207655dadf69c6f74c194c80009fb9767d7710337f586908969aa9cf')
|
sha512sums=('ac56e9b7dddaebb3d222795cfc644109c93cc3f79695b8f9ee56022c74fe04a1134dd54cab07c74ff1f96b783cb3dbc026c16095552f1d2dd83115ea274dc2e9')
|
||||||
sha256sums_x86_64=('0c1c5660ed8b39ed7409d13879b87627d03ec29f2782f71e5791ae4bbe1350b7')
|
sha512sums_x86_64=('f7218a7486b22937618e9eaa20fbc4d47d8d58a5bdef1579c1bd68aeca147c3195c34b988675d317c00c2be529e56c5e2ff01b5a9f64f9755e1d6bd89f5b21f0')
|
||||||
sha256sums_aarch64=('def23facff20b497631726a8aeb1b3a572c2a8abd9a2179b639f56af74feb581')
|
sha512sums_aarch64=('329a54202c5837832f5666de8e32de53b80fbb61e3c1fcd424e12de8d793c5ddb7f1179053a0d60f19882895c24445f38c64f758dc2ca953d646e0dc19ea626a')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
sed -i -e "s|@ST_PATH@|/opt/sublime_text|g" "${pkgname}.sh"
|
||||||
|
sed -i -e 's#/opt/sublime_text/sublime_text#/usr/bin/subl#g' 'sublime_text/sublime_text.desktop'
|
||||||
|
sed -i -e '\#^StartupNotify=#a StartupWMClass=subl' 'sublime_text/sublime_text.desktop'
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}"
|
install -dm755 "${pkgdir}/opt"
|
||||||
|
cp --preserve=mode -r 'sublime_text' "${pkgdir}/opt/sublime_text"
|
||||||
|
rm -f "${pkgdir}/opt/sublime_text/sublime_text.desktop"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/opt"
|
for res in 128x128 16x16 256x256 32x32 48x48; do
|
||||||
cp --preserve=mode -r "sublime_text" "${pkgdir}/opt/sublime_text"
|
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
|
||||||
|
ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png"
|
||||||
|
done
|
||||||
|
|
||||||
for res in 128x128 16x16 256x256 32x32 48x48; do
|
install -dm755 "${pkgdir}/usr/share/applications"
|
||||||
install -dm755 "${pkgdir}/usr/share/icons/hicolor/${res}/apps"
|
install -Dm644 'sublime_text/sublime_text.desktop' "${pkgdir}/usr/share/applications/sublime_text.desktop"
|
||||||
ln -s "/opt/sublime_text/Icon/${res}/sublime-text.png" "${pkgdir}/usr/share/icons/hicolor/${res}/apps/sublime-text.png"
|
|
||||||
done
|
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/share/applications"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
install -Dm644 "sublime_text.desktop" "${pkgdir}/usr/share/applications/sublime_text.desktop"
|
install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/subl"
|
||||||
|
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
|
||||||
ln -s "/opt/sublime_text/sublime_text" "${pkgdir}/usr/bin/subl"
|
|
||||||
}
|
}
|
||||||
|
|
3
sublime-text-dev.sh
Normal file
3
sublime-text-dev.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec @ST_PATH@/sublime_text "$@"
|
|
@ -1,24 +0,0 @@
|
||||||
[Desktop Entry]
|
|
||||||
Version=1.0
|
|
||||||
Type=Application
|
|
||||||
Name=Sublime Text
|
|
||||||
GenericName=Text Editor
|
|
||||||
Comment=Sophisticated text editor for code, markup and prose
|
|
||||||
Exec=subl %F
|
|
||||||
Terminal=false
|
|
||||||
MimeType=text/plain;
|
|
||||||
Icon=sublime-text
|
|
||||||
Categories=TextEditor;Development;
|
|
||||||
StartupNotify=true
|
|
||||||
StartupWMClass=subl
|
|
||||||
Actions=Window;Document;
|
|
||||||
|
|
||||||
[Desktop Action Window]
|
|
||||||
Name=New Window
|
|
||||||
Exec=subl -n
|
|
||||||
OnlyShowIn=Unity;
|
|
||||||
|
|
||||||
[Desktop Action Document]
|
|
||||||
Name=New File
|
|
||||||
Exec=subl --command new_file
|
|
||||||
OnlyShowIn=Unity;
|
|
Loading…
Reference in a new issue