diff options
author | JK Wood <joshuakwood@gmail.com> | 2014-07-18 11:08:10 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-07-18 11:08:10 +0700 |
commit | d990a76b8c20ab21f9e77573dda2a4c9f7619e32 (patch) | |
tree | 364972679707e685bf5f42f3bf2b972c32256655 /ham/xnec2c | |
parent | 5a8d17cd113de0c7d342edb6f7e17b9bddc800fb (diff) | |
download | slackbuilds-d990a76b8c20ab21f9e77573dda2a4c9f7619e32.tar.gz |
ham/xnec2c: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/xnec2c')
-rw-r--r-- | ham/xnec2c/doinst.sh | 3 | ||||
-rw-r--r-- | ham/xnec2c/xnec2c-icon.png | bin | 0 -> 3707 bytes | |||
-rw-r--r-- | ham/xnec2c/xnec2c.SlackBuild | 8 | ||||
-rw-r--r-- | ham/xnec2c/xnec2c.desktop | 9 |
4 files changed, 19 insertions, 1 deletions
diff --git a/ham/xnec2c/doinst.sh b/ham/xnec2c/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/ham/xnec2c/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/ham/xnec2c/xnec2c-icon.png b/ham/xnec2c/xnec2c-icon.png Binary files differnew file mode 100644 index 0000000000..68d6cf1807 --- /dev/null +++ b/ham/xnec2c/xnec2c-icon.png diff --git a/ham/xnec2c/xnec2c.SlackBuild b/ham/xnec2c/xnec2c.SlackBuild index 0ba419748a..947f5e8034 100644 --- a/ham/xnec2c/xnec2c.SlackBuild +++ b/ham/xnec2c/xnec2c.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=xnec2c VERSION=${VERSION:-2.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -83,6 +83,11 @@ make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +mkdir -p $PKG/usr/share/applications +mkdir -p $PKG/usr/share/pixmaps +install -m 644 $CWD/xnec2c.desktop $PKG/usr/share/applications +install -m 644 $CWD/xnec2c-icon.png $PKG/usr/share/pixmaps + mkdir -p $PKG/usr/man/man1 cp -a doc/xnec2c.1.gz $PKG/usr/man/man1 @@ -99,6 +104,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \; 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/ham/xnec2c/xnec2c.desktop b/ham/xnec2c/xnec2c.desktop new file mode 100644 index 0000000000..24d4460c3b --- /dev/null +++ b/ham/xnec2c/xnec2c.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Xnec2c +GenericName=GTK+ version of NEC2 +Comment=Numerical Electromagnetics Code software +Exec=xnec2c +Icon=xnec2c-icon +Terminal=false +Type=Application +Categories=Network;HamRadio; |