secret
Last active

PKGBUILD sublime-text-nightly

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
# Maintainer: Sander Boom <sander at inflowmotion dot nl>
 
pkgname=sublime-text-nightly
pkgver=3.3023
pkgrel=2
pkgdesc="Sophisticated text editor for code, html and prose - nightly build (available to registered users only)"
arch=('i686' 'x86_64')
url="http://www.sublimetext.com/3dev"
license=('custom')
depends=(libpng gtk2)
install=${pkgname}.install
 
_archurl='x64'
 
[[ "${CARCH}" = i686 ]] && _archurl='x32'
 
source=(
"http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_${pkgver:2}_${_archurl}.tar.bz2"
"sublime_text_3.desktop"
)
md5sums=('89270cffbf437478c896651f724e88e9'
'3843bb9bba00e7817e3194ed99d2ff26')
 
[[ "${CARCH}" = i686 ]] && md5sums[0]='75774fe20ce4a7a98daae02ad1c57261'
 
build() {
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 -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"
}
sublime-text-nightly.desktop
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text 3 Nightly
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;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.