get-scripts annotate sublime-text-3 @ rev 80

libreoffice: fix menu entries (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 11:40:00 2019 +0200 (2019-06-09)
parents 2cb082503ef7
children
rev   line source
pascal@34 1 SHORT_DESC="Sophisticated text editor for code, markup and prose"
pascal@34 2 WEB_SITE="http://www.sublimetext.com/3"
pascal@40 3 CATEGORY="non-free"
pascal@34 4 # end of get.list data
pascal@34 5 MAINTAINER="al.bobylev@gmail.com"
pascal@34 6 WGET_URL="$(wget -O - $WEB_SITE | tr '"' '\n' | fgrep x32.tar)"
pascal@34 7 VERSION=${WGET_URL%_x32*}; VERSION=${VERSION##*_}
pascal@34 8 TARBALL="$(basename $WGET_URL)"
pascal@34 9
pascal@34 10 busybox wget $WGET_URL
pascal@63 11 [ -f $TARBALL ] || abort_package
pascal@34 12
pascal@34 13 mkdir -p $PACKAGE-$VERSION/fs/opt $PACKAGE-$VERSION/fs/usr/share/applications
pascal@34 14 cd $PACKAGE-$VERSION/fs/opt
pascal@34 15 tar -xjf ../../../$TARBALL
pascal@34 16 mv sublime_text_3 sublime_text
pascal@34 17 mv sublime_text/sublime_text.desktop ../usr/share/applications
pascal@34 18
pascal@34 19 # link icons
pascal@34 20 for size in $(cd sublime_text/Icon; ls); do
pascal@34 21 mkdir -p ../usr/share/icons/hicolor/$size/apps
pascal@34 22 ln -fs /opt/sublime_text/Icon/$size/sublime-text.png \
pascal@34 23 ../usr/share/icons/hicolor/$size/apps/sublime-text.png
pascal@34 24 done
pascal@57 25 cd ../../..