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

geogebra: update
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 29 18:51:12 2015 +0200 (2015-04-29)
parents
children 9236e88ec240
line source
1 SHORT_DESC="Sophisticated text editor for code, markup and prose"
2 WEB_SITE="http://www.sublimetext.com/3"
3 # end of get.list data
4 CATEGORY="development"
5 MAINTAINER="al.bobylev@gmail.com"
6 LICENSE="non-free"
7 WGET_URL="$(wget -O - $WEB_SITE | tr '"' '\n' | fgrep x32.tar)"
8 VERSION=${WGET_URL%_x32*}; VERSION=${VERSION##*_}
9 TARBALL="$(basename $WGET_URL)"
11 busybox wget $WGET_URL
12 [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
14 mkdir -p $PACKAGE-$VERSION/fs/opt $PACKAGE-$VERSION/fs/usr/share/applications
15 cd $PACKAGE-$VERSION/fs/opt
16 tar -xjf ../../../$TARBALL
17 mv sublime_text_3 sublime_text
18 mv sublime_text/sublime_text.desktop ../usr/share/applications
20 # link icons
21 for size in $(cd sublime_text/Icon; ls); do
22 mkdir -p ../usr/share/icons/hicolor/$size/apps
23 ln -fs /opt/sublime_text/Icon/$size/sublime-text.png \
24 ../usr/share/icons/hicolor/$size/apps/sublime-text.png
25 done