diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-12 17:00:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-07-15 21:48:48 +0700 |
commit | 3eea0268febf3aa2060101c7d26a4078e50126ac (patch) | |
tree | 96091cfedb31c7c485dadd6ed60876ab9a83085f /development/nedit | |
parent | 2e4b3d32e142046fe3d8a9d29a74bf650b258290 (diff) |
development/nedit: Added desktop shortcut and icon.
Thanks to bhyeti and ponce in LQ.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/nedit')
-rw-r--r-- | development/nedit/doinst.sh | 3 | ||||
-rw-r--r-- | development/nedit/nedit.SlackBuild | 9 | ||||
-rw-r--r-- | development/nedit/nedit.desktop | 28 | ||||
-rw-r--r-- | development/nedit/nedit.png | bin | 0 -> 3870 bytes |
4 files changed, 39 insertions, 1 deletions
diff --git a/development/nedit/doinst.sh b/development/nedit/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/development/nedit/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/development/nedit/nedit.SlackBuild b/development/nedit/nedit.SlackBuild index 8e0133eb4c6a2..5e2d0be00776b 100644 --- a/development/nedit/nedit.SlackBuild +++ b/development/nedit/nedit.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=nedit VERSION=${VERSION:-5.6a} NUMVER=$(echo $VERSION | tr -d '[:alpha:]') -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -85,12 +85,19 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +mkdir -p $PKG/usr/share/applications +install -m644 $CWD/nedit.desktop $PKG/usr/share/applications/ + +mkdir -p $PKG/usr/share/icons/ +cp $CWD/nedit.png $PKG/usr/share/icons/ + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYRIGHT ChangeLog README doc/faq.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/nedit/nedit.desktop b/development/nedit/nedit.desktop new file mode 100644 index 0000000000000..84815571b1b15 --- /dev/null +++ b/development/nedit/nedit.desktop @@ -0,0 +1,28 @@ +[Desktop Entry] +Encoding=UTF-8 +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Comment=Text Editor +Comment[bg]=Nedit Ðåäàêòîð +Comment[ca]=Editor Nedit +Comment[cs]=Editor Nedit +Comment[eo]=redaktilo Nedit +Comment[et]=Tekstiredaktor Nedit +Comment[fi]=Nedit-editori +Comment[fr]=Éditeur Nedit +Comment[hu]=Nedit szövegszerkesztő +Comment[is]=Nedit-ritill +Comment[mk]=Nedit - лесен и моќен уредувач +Comment[pt]=Editor Nedit +Comment[ro]=Editorul Nedit +Comment[ru]=Редактор Nedit +Comment[sk]=Editor Nedit +Comment[sl]=Urejevalnik Nedit +Comment[uk]=Редактор Nedit +Name=Nedit +Name[et]=Tekstiredaktor Nedit +Name[ru]=NEdit +Exec=nedit %f +Icon=nedit +Type=Application +Terminal=false + diff --git a/development/nedit/nedit.png b/development/nedit/nedit.png Binary files differnew file mode 100644 index 0000000000000..9223f855f3d2d --- /dev/null +++ b/development/nedit/nedit.png |