development/sublime_text: Fix icons and desktop icon.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2015-06-07 21:25:02 +07:00 committed by Willy Sudiarto Raharjo
parent 15f45b17a7
commit b574b22406
1 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@
PRGNAM=sublime_text PRGNAM=sublime_text
VERSION=${VERSION:-3.0.83} VERSION=${VERSION:-3.0.83}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -65,12 +65,16 @@ ln -sf /opt/$PRGNAM/sublime_text $PKG/usr/bin
mkdir -p $PKG/usr/share/applications mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps
install -D -m0644 Icon/48x48/sublime-text.png $PKG/usr/share/pixmaps/${PRGNAM}.png
for size in 16x16 32x32 48x48 128x128 256x256 ; do for size in 16x16 32x32 48x48 128x128 256x256 ; do
mkdir -p $PKG/usr/share/icons/hicolor/$size/apps mkdir -p $PKG/usr/share/icons/hicolor/$size/apps
ln -s /opt/$PRGNAM/Icon/$size/sublime_text.png \ ln -s /opt/$PRGNAM/Icon/$size/sublime-text.png \
$PKG/usr/share/icons/hicolor/$size/apps/ ; $PKG/usr/share/icons/hicolor/$size/apps/ ;
done done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild