get-scripts view sublime-text-3 @ rev 43

opera: fix non-us layout "XOpenIM failed. This may prevent you from being able to type" error
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri May 22 02:17:42 2015 +0300 (2015-05-22)
parents 6ca05e6839e1
children 2cb082503ef7
line source
1 SHORT_DESC="Sophisticated text editor for code, markup and prose"
2 WEB_SITE="http://www.sublimetext.com/3"
3 CATEGORY="non-free"
4 # end of get.list data
5 MAINTAINER="al.bobylev@gmail.com"
6 WGET_URL="$(wget -O - $WEB_SITE | tr '"' '\n' | fgrep x32.tar)"
7 VERSION=${WGET_URL%_x32*}; VERSION=${VERSION##*_}
8 TARBALL="$(basename $WGET_URL)"
10 busybox wget $WGET_URL
11 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
13 mkdir -p $PACKAGE-$VERSION/fs/opt $PACKAGE-$VERSION/fs/usr/share/applications
14 cd $PACKAGE-$VERSION/fs/opt
15 tar -xjf ../../../$TARBALL
16 mv sublime_text_3 sublime_text
17 mv sublime_text/sublime_text.desktop ../usr/share/applications
19 # link icons
20 for size in $(cd sublime_text/Icon; ls); do
21 mkdir -p ../usr/share/icons/hicolor/$size/apps
22 ln -fs /opt/sublime_text/Icon/$size/sublime-text.png \
23 ../usr/share/icons/hicolor/$size/apps/sublime-text.png
24 done