summaryrefslogtreecommitdiff
path: root/development/nedit/nedit.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-12 17:00:53 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-15 21:48:48 +0700
commit3eea0268febf3aa2060101c7d26a4078e50126ac (patch)
tree96091cfedb31c7c485dadd6ed60876ab9a83085f /development/nedit/nedit.SlackBuild
parent2e4b3d32e142046fe3d8a9d29a74bf650b258290 (diff)
downloadslackbuilds-3eea0268febf3aa2060101c7d26a4078e50126ac.tar.gz
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/nedit.SlackBuild')
-rw-r--r--development/nedit/nedit.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/development/nedit/nedit.SlackBuild b/development/nedit/nedit.SlackBuild
index 8e0133eb4c..5e2d0be007 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}