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

Add vivaldi & plop
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 14 15:32:56 2016 +0200 (2016-07-14)
parents 9236e88ec240
children 62d94e6800db
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
25 cd ../../..