diff options
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 29 | ||||
-rw-r--r-- | debian/copyright | 76 | ||||
-rw-r--r-- | debian/local/sublime-text.1 | 79 | ||||
-rw-r--r-- | debian/local/sublime-text.desktop.in | 23 | ||||
-rwxr-xr-x | debian/local/sublime-text.in | 5 | ||||
-rwxr-xr-x | debian/rules | 51 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | debian/source/local-options | 1 | ||||
-rw-r--r-- | debian/sublime-text-3.README.Debian | 42 | ||||
-rw-r--r-- | debian/sublime-text-3.links | 2 | ||||
-rwxr-xr-x | debian/sublime-text-3.postinst | 34 | ||||
-rwxr-xr-x | debian/sublime-text-3.prerm | 23 |
14 files changed, 372 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..f7f5fa1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +sublime-text-3 (3.0-3143-0dschinn1) dschinn-extras; urgency=low + + * Initial upload to dschinn-extras. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Thu, 07 Jun 2018 19:03:35 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2d40a8a --- /dev/null +++ b/debian/control @@ -0,0 +1,29 @@ +Source: sublime-text-3 +Section: restricted/editors +Priority: optional +Maintainer: Progress Linux Maintainers <maintainers@lists.progress-linux.org> +XSBC-Uploaders: Daniel Baumann <daniel.baumann@progress-linux.org> +Bugs: mailto:bugs@lists.progress-linux.org +Build-Depends: + bzip2, + debhelper (>= 10), + libx11-6, + lynx, +Standards-Version: 3.9.8 +Homepage: https://www.sublimetext.com +Vcs-Browser: https://sources.progress-linux.org/distributions/dschinn-extras/packages/sublime-text-3 +Vcs-Git: https://sources.progress-linux.org/distributions/dschinn-extras/packages/sublime-text-3 + +Package: sublime-text-3 +Section: restricted/editors +Architecture: amd64 i386 +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Provides: + sublime-3, +Description: Sublime Text 3 + Sublime Text is a proprietary cross-platform source code editor with a Python + application programming interface (API). It natively supports many programming + languages and markup languages, and functions can be added by users with + plugins. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0b0348a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,76 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Sublime Text +Upstream-Contact: Sublime HQ Pty Ltd <support@sublimetext.com> +Source: https://www.sublimetext.com/3 + +Files: * +Copyright: 2006-2017 Sublime HQ Pty Ltd +License: other + +Files: debian/* +Copyright: 2010-2017 Daniel Baumann <daniel.baumann@progress-linux.org> +License: PD + +License: other + End User License Agreement + . + The SOFTWARE PRODUCT (SUBLIME TEXT) is protected by copyright laws and + international copyright treaties, as well as other intellectual + property laws and treaties. The SOFTWARE PRODUCT is licensed, not sold. + . + 1. LICENSES + SUBLIME TEXT is licensed as follows: + a. Installation and Usage. + Licenses are per user and valid for use on all supported + operating systems. License keys may be used on multiple + computers and operating systems, provided the license key + holder is the primary user. Businesses must purchase at least + as many licenses as the number of people using SUBLIME TEXT. + b. Backup Copies. + You may make copies of the license key and or SUBLIME TEXT for + backup and archival purposes. + . + 2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS + a. Maintenance of Copyright Notices. + You must not remove or alter any copyright notices on any copy + of SUBLIME TEXT. + b. Distribution. + You may not distribute or sell license keys or SUBLIME TEXT to + third parties. Licenses will be revoked if distributed or sold + to third parties. + c. Rental. + You may not rent, lease, or lend the license key or SUBLIME + TEXT. + . + 3. COPYRIGHT + All title, including but not limited to copyrights, in and to + SUBLIME TEXT and any copies thereof are owned by SUBLIME HQ PTY + LTD. + . + 4. NO WARRANTIES + SUBLIME HQ PTY LTD expressly disclaims any warranty for SUBLIME + TEXT, which is provided 'as is' without any express or implied + warranty of any kind, including but not limited to any warranties + of merchantability, non-infringement, or fitness of a particular + purpose. + . + 5. LIMITATION OF LIABILITY + In no event shall SUBLIME HQ PTY LTD be liable for any damages due + to use of SUBLIME TEXT, to the maximum extent permitted by law. + This includes without limitation, lost profits, business + interruption, or lost information. In no event will SUBLIME HQ PTY + LTD be liable for loss of data or for indirect, special, + incidental, consequential (including lost profit), or other + damages. SUBLIME HQ PTY LTD shall have no liability with respect to + the content of SUBLIME TEXT or any part thereof, including but not + limited to errors or omissions contained therein, libel, trademark + rights, business interruption, loss of privacy or the disclosure of + confidential information. + +License: PD + This program is free software: you have unlimited permission + to copy, distribute and modify it. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff --git a/debian/local/sublime-text.1 b/debian/local/sublime-text.1 new file mode 100644 index 0000000..8579d9b --- /dev/null +++ b/debian/local/sublime-text.1 @@ -0,0 +1,79 @@ +.TH "SUBLIME\-TEXT\-3" "1" "3" "sublime\-text\-3" "Sublime Text 3" + +.SH "NAME" +sublime\-text\-3 \- sophisticated text editor for code, markup and prose. + +.SH "SYNOPSIS" +\fBsublime\-text\-3\fR [\fIOPTIONS\fR] [\fIFILE\fR[:\fILINE\fR[:\fICOLUMN\fR]]...] +.PP +\fBsublime\-text\-3\fR [\fIOPTIONS\fR] [\fIDIRECTORY\fR...] + +.SH "DESCRIPTION" +Sublime Text is a proprietary cross\-platform source code editor with a Python application programming interface (API). It natively supports many programming languages and markup languages, and functions can be added by users with plugins. +.PP +.RS 2 +\-\- Wikipedia (\fIhttps://en.wikipedia.org/wiki/Sublime_Text\fR) + +.SH "OPTIONS" +The following options are available: +.PP +\fB\-a\fR, \fB\-\-add\fR +.RS 4 +Add directories to the current window. +.RE +.PP +\fB\-b\fR, \fB\-\-background\fR +.RS 4 +Don't activate the application. +.RE +.PP +\fB\-\-command\fR \fICOMMAND\fR +.RS 4 +Run the given command. +.RE +.PP +\fB\-h\fR, \fB\-\-help\fR +.RS 4 +Show help and exit. +.RE +.PP +\fB\-n\fR, \fB\-\-new\-window\fR +.RS 4 +Open a new window. +.RE +.PP +\fB\-\-project\fR \fIPROJECT\fR +.RS 4 +Load the given project. +.RE +.PP +\fB\-v\fR, \fB\-\-version\fR +.RS 4 +Show version and exit. +.RE +.PP +\fB\-w\fR, \fB\-\-wait\fR +.RS 4 +Wait for the files to be closed before returning. +.RE + +.SH "FILES" +The following files are used: +.PP +\fB~/.config/sublime\-text\-3\fR +.RS 4 +Configuration files. +.RE +.PP +\fB/usr/share/doc/sublime\-text\-3/README.Debian\fR +.RS 4 +Notes for Debian\-based systems. +.RE + +.SH "HOMEPAGE" +More information about Sublime Text can be found on the homepage at \fIhttps://www.sublimetext.com\fR. + +.SH "AUTHORS" +Sublime Text was written by Sublime HQ Pty Ltd. +.br +This manpage was written by Daniel Baumann <\fIdaniel.baumann@progress\-linux.org\fR>. diff --git a/debian/local/sublime-text.desktop.in b/debian/local/sublime-text.desktop.in new file mode 100644 index 0000000..aee5d03 --- /dev/null +++ b/debian/local/sublime-text.desktop.in @@ -0,0 +1,23 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=@DESCRIPTION@ +GenericName=Text Editor +Comment=Sophisticated text editor for code, markup and prose +Exec=/usr/bin/@PACKAGE@ %F +Terminal=false +MimeType=text/plain; +Icon=@PACKAGE@ +Categories=TextEditor;Development; +StartupNotify=true +Actions=Window;Document; + +[Desktop Action Window] +Name=New Window +Exec=/usr/bin/@PACKAGE@ -n +OnlyShowIn=Unity; + +[Desktop Action Document] +Name=New File +Exec=/usr/bin/@PACKAGE@ --command new_file +OnlyShowIn=Unity; diff --git a/debian/local/sublime-text.in b/debian/local/sublime-text.in new file mode 100755 index 0000000..9362c19 --- /dev/null +++ b/debian/local/sublime-text.in @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +exec /usr/lib/@PACKAGE@/sublime_text ${@} diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a081ab0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,51 @@ +#!/usr/bin/make -f + +PACKAGE := sublime-text-3 +DESCRIPTION := Sublime Text 3 + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +%: + dh ${@} + +override_dh_auto_clean: + dh_auto_clean + + rm -f changelog + +override_dh_auto_install: + mkdir -p debian/$(PACKAGE)/usr/lib +ifeq "$(DEB_BUILD_ARCH)" "amd64" + tar xf $$(find . -maxdepth 1 -mindepth 1 -type f -name "sublime_text_*_x64.tar.bz2") -C debian/$(PACKAGE)/usr/lib +endif +ifeq "$(DEB_BUILD_ARCH)" "i386" + tar xf $$(find . -maxdepth 1 -mindepth 1 -type f -name "sublime_text_*_x32.tar.bz2") -C debian/$(PACKAGE)/usr/lib +endif + mv debian/$(PACKAGE)/usr/lib/sublime_text_* debian/$(PACKAGE)/usr/lib/$(PACKAGE) + + mkdir -p debian/$(PACKAGE)/usr/share/doc/$(PACKAGE) + lynx -dump debian/$(PACKAGE)/usr/lib/$(PACKAGE)/changelog.txt -force_html > debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/changelog + + mkdir -p debian/$(PACKAGE)/usr/share/icons + mv debian/$(PACKAGE)/usr/lib/$(PACKAGE)/Icon debian/$(PACKAGE)/usr/share/icons/hicolor + for FILE in $$(find debian/$(PACKAGE)/usr/share/icons/hicolor -name "*.png"); do mv $${FILE} $$(dirname $${FILE})/$(PACKAGE).png; done + + rm -f debian/$(PACKAGE)/usr/lib/$(PACKAGE)/*.desktop + + mkdir -p debian/$(PACKAGE)/usr/bin + sed -e "s|@PACKAGE@|$(PACKAGE)|g" \ + debian/local/sublime-text.in > debian/$(PACKAGE)/usr/bin/${PACKAGE} + + mkdir -p debian/$(PACKAGE)/usr/share/applications + sed -e "s|@PACKAGE@|$(PACKAGE)|g" \ + -e "s|@DESCRIPTION@|$(DESCRIPTION)|g" \ + debian/local/sublime-text.desktop.in > debian/$(PACKAGE)/usr/share/applications/$(PACKAGE).desktop + + mkdir -p debian/$(PACKAGE)/usr/share/man/man1 + cp debian/local/sublime-text.1 debian/$(PACKAGE)/usr/share/man/man1/$(PACKAGE).1 + +override_dh_strip: + # disabled + +override_dh_strip_nondeterminism: + # disabled diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..2ee6f0f --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1 @@ +abort-on-upstream-changes diff --git a/debian/sublime-text-3.README.Debian b/debian/sublime-text-3.README.Debian new file mode 100644 index 0000000..6704fbb --- /dev/null +++ b/debian/sublime-text-3.README.Debian @@ -0,0 +1,42 @@ +sublime-text-3 for Debian +========================= + +Configuring alternatives +------------------------ + +The symbolic links /usr/bin/sublime-text, /usr/bin/sublime_text. and +/usr/bin/subl can be configured with: + + sudo update-alternatives --config sublime-text + +The default GNOME text editor can be configured system-wide with: + + sudo update-alternatives --config gnome-text-editor + + +Disabling update check +---------------------- + +Sublime Text phones home at every start of the editor to check for a newer +version by sending the currently used version to: + + http://www.sublimetext.com/updates/3/stable/updatecheck + +Note that it is not using an encrypted connection (https) and that sending any +information can be considered a privacy breach. + +On licensed versions of Sublime Text, the following user setting disables the +check: + + "update_check": false + +Note that on unlicensed versions, this setting is silently ignored. + +As a workaround, locally overwriting the DNS works too: + + echo "0.0.0.0 www.sublimetext.com" > /etc/hosts + +However, this blocks all access to the Sublime Text homepage including +documentation etc. + + -- Daniel Baumann <daniel.baumann@progress-linux.org> Fri, 08 Jun 2018 05:08:15 +0200 diff --git a/debian/sublime-text-3.links b/debian/sublime-text-3.links new file mode 100644 index 0000000..1726236 --- /dev/null +++ b/debian/sublime-text-3.links @@ -0,0 +1,2 @@ +/usr/bin/sublime-text-3 /usr/bin/subl-3 +/usr/bin/sublime-text-3 /usr/bin/sublime_text_3 diff --git a/debian/sublime-text-3.postinst b/debian/sublime-text-3.postinst new file mode 100755 index 0000000..7c7c110 --- /dev/null +++ b/debian/sublime-text-3.postinst @@ -0,0 +1,34 @@ +#!/bin/sh + +set -e + +case "${1}" in + configure) + update-alternatives --quiet \ + --install /usr/bin/sublime-text sublime-text /usr/bin/sublime-text-3 3000 \ + --slave /usr/share/man/man1/sublime-text.1.gz sublime-text.1.gz /usr/share/man/man1/sublime-text-3.1.gz \ + \ + --slave /usr/bin/sublime_text sublime_text /usr/bin/sublime-text-3 \ + --slave /usr/share/man/man1/sublime_text.1.gz sublime_text.1.gz /usr/share/man/man1/sublime-text-3.1.gz \ + \ + --slave /usr/bin/subl subl /usr/bin/sublime-text-3 \ + --slave /usr/share/man/man1/subl.1.gz subl.1.gz /usr/share/man/man1/sublime-text-3.1.gz + + update-alternatives --quiet \ + --install /usr/bin/gnome-text-editor gnome-text-editor /usr/bin/sublime-text-3 30 \ + --slave /usr/share/man/man1/gnome-text-editor.1.gz gnome-text-editor.1.gz /usr/share/man/man1/sublime-text-3.1.gz + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/sublime-text-3.prerm b/debian/sublime-text-3.prerm new file mode 100755 index 0000000..a0bfde9 --- /dev/null +++ b/debian/sublime-text-3.prerm @@ -0,0 +1,23 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove|upgrade|deconfigure) + update-alternatives --quiet --remove sublime-text /usr/bin/sublime-text-3 + update-alternatives --quiet --remove gnome-text-editor /usr/bin/sublime-text-3 + ;; + + failed-upgrade) + + ;; + + *) + echo "prerm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |