commit e2776838bf6801fab8467f8b670ac58c88332b3c Author: Sander Boom Date: Tue Jul 7 23:11:13 2015 +0200 Initial import diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..021b960 --- /dev/null +++ b/.SRCINFO @@ -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 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..eaa22d0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Sander Boom +# Contributor: realitygaps + +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" +} diff --git a/sublime-text-dev.install b/sublime-text-dev.install new file mode 100644 index 0000000..b02fe85 --- /dev/null +++ b/sublime-text-dev.install @@ -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 +} diff --git a/sublime_text_3.desktop b/sublime_text_3.desktop new file mode 100644 index 0000000..b368ace --- /dev/null +++ b/sublime_text_3.desktop @@ -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;