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

libreoffice: fix menu entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 11:04:15 2019 +0200 (13 months ago)
parents 2cb082503ef7
children
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
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 ../../..