Initial import
This commit is contained in:
commit
e2776838bf
4 changed files with 106 additions and 0 deletions
23
.SRCINFO
Normal file
23
.SRCINFO
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
pkgbase = sublime-text-dev
|
||||||
|
pkgdesc = Sophisticated text editor for code, html and prose - dev build
|
||||||
|
pkgver = 3.3083
|
||||||
|
pkgrel = 1
|
||||||
|
url = http://www.sublimetext.com/3
|
||||||
|
install = sublime-text-dev.install
|
||||||
|
arch = i686
|
||||||
|
arch = x86_64
|
||||||
|
license = custom
|
||||||
|
depends = libpng
|
||||||
|
depends = gtk2
|
||||||
|
optdepends = gksu: sudo-save support
|
||||||
|
provides = sublime-text-nightly
|
||||||
|
conflicts = sublime-text-nightly
|
||||||
|
source = sublime_text_3.desktop
|
||||||
|
md5sums = 89594b9c6b9a8c7e6a8ce414a0e58243
|
||||||
|
source_i686 = http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x32.tar.bz2
|
||||||
|
md5sums_i686 = d1be10594fe7093b1b43a888a48c838f
|
||||||
|
source_x86_64 = http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3083_x64.tar.bz2
|
||||||
|
md5sums_x86_64 = 5da998bea29f9ca02a60d2b3cfc46fea
|
||||||
|
|
||||||
|
pkgname = sublime-text-dev
|
||||||
|
|
41
PKGBUILD
Normal file
41
PKGBUILD
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# Maintainer: Sander Boom <sander at inflowmotion dot nl>
|
||||||
|
# Contributor: realitygaps <realitygaps at yahoo dot com>
|
||||||
|
|
||||||
|
pkgname=sublime-text-dev
|
||||||
|
pkgver=3.3083
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Sophisticated text editor for code, html and prose - dev build"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://www.sublimetext.com/3"
|
||||||
|
license=('custom')
|
||||||
|
depends=('libpng' 'gtk2')
|
||||||
|
optdepends=('gksu: sudo-save support')
|
||||||
|
conflicts=('sublime-text-nightly')
|
||||||
|
provides=('sublime-text-nightly')
|
||||||
|
install=${pkgname}.install
|
||||||
|
|
||||||
|
source=('sublime_text_3.desktop')
|
||||||
|
source_x86_64=("http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${pkgver:2}_x64.tar.bz2")
|
||||||
|
source_i686=("http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${pkgver:2}_x32.tar.bz2")
|
||||||
|
|
||||||
|
md5sums=('89594b9c6b9a8c7e6a8ce414a0e58243')
|
||||||
|
md5sums_i686=('d1be10594fe7093b1b43a888a48c838f')
|
||||||
|
md5sums_x86_64=('5da998bea29f9ca02a60d2b3cfc46fea')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}"
|
||||||
|
|
||||||
|
install -dm755 "${pkgdir}/opt"
|
||||||
|
cp --preserve=mode -r "sublime_text_3" "${pkgdir}/opt/sublime_text_3"
|
||||||
|
|
||||||
|
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 -dm755 "${pkgdir}/usr/share/applications"
|
||||||
|
install -Dm644 "sublime_text_3.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"
|
||||||
|
}
|
19
sublime-text-dev.install
Normal file
19
sublime-text-dev.install
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
post_install() {
|
||||||
|
# Update icon cache.
|
||||||
|
gtk-update-icon-cache -f '/usr/share/icons/hicolor' > /dev/null 2>&1
|
||||||
|
|
||||||
|
# Note admin after install/update on how to change th update_check setting.
|
||||||
|
cat << _EOF
|
||||||
|
|
||||||
|
==> sublime-text-dev install/upgrade note:
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
To disable in-application reminders about new Sublime Text dev versions,
|
||||||
|
add the following setting to your User Preferences file:
|
||||||
|
"update_check": false
|
||||||
|
|
||||||
|
_EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
23
sublime_text_3.desktop
Normal file
23
sublime_text_3.desktop
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=Sublime Text 3 Dev
|
||||||
|
GenericName=Text Editor
|
||||||
|
Comment=Sophisticated text editor for code, markup and prose
|
||||||
|
Exec=subl3 %F
|
||||||
|
Terminal=false
|
||||||
|
MimeType=text/plain;
|
||||||
|
Icon=sublime-text
|
||||||
|
Categories=TextEditor;Development;
|
||||||
|
StartupNotify=true
|
||||||
|
Actions=Window;Document;
|
||||||
|
|
||||||
|
[Desktop Action Window]
|
||||||
|
Name=New Window
|
||||||
|
Exec=subl3 -n
|
||||||
|
OnlyShowIn=Unity;
|
||||||
|
|
||||||
|
[Desktop Action Document]
|
||||||
|
Name=New File
|
||||||
|
Exec=subl3 --command new_file
|
||||||
|
OnlyShowIn=Unity;
|
Loading…
Reference in a new issue