development/sublime_text: Fix icons and desktop icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
15f45b17a7
commit
b574b22406
|
@ -9,7 +9,7 @@
|
|||
|
||||
PRGNAM=sublime_text
|
||||
VERSION=${VERSION:-3.0.83}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -65,12 +65,16 @@ ln -sf /opt/$PRGNAM/sublime_text $PKG/usr/bin
|
|||
mkdir -p $PKG/usr/share/applications
|
||||
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
|
||||
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/ ;
|
||||
done
|
||||
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue