diff options
author | JK Wood <joshuakwood@gmail.com> | 2014-07-18 11:06:28 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-07-18 11:06:28 +0700 |
commit | 5a8d17cd113de0c7d342edb6f7e17b9bddc800fb (patch) | |
tree | 46fbcc202851865d3e4df7b83fb429bc7f054629 /ham | |
parent | 863b1e283e47c0abc684adfb759cfef3d43ee615 (diff) |
ham/xpsk31: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham')
-rw-r--r-- | ham/xpsk31/doinst.sh | 3 | ||||
-rw-r--r-- | ham/xpsk31/xpsk31.SlackBuild | 8 | ||||
-rw-r--r-- | ham/xpsk31/xpsk31.desktop | 11 | ||||
-rw-r--r-- | ham/xpsk31/xpsk31.png | bin | 0 -> 6628 bytes |
4 files changed, 21 insertions, 1 deletions
diff --git a/ham/xpsk31/doinst.sh b/ham/xpsk31/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/ham/xpsk31/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/xpsk31/xpsk31.SlackBuild b/ham/xpsk31/xpsk31.SlackBuild index 7d9eca9556844..250bd6dd4db9a 100644 --- a/ham/xpsk31/xpsk31.SlackBuild +++ b/ham/xpsk31/xpsk31.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=xpsk31 VERSION=${VERSION:-2.7} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -86,6 +86,11 @@ make install DESTDIR=$PKG mkdir -p $PKG/usr/share/$PRGNAM-$VERSION install -m 644 xpsk31/xpsk31rc $PKG/usr/share/$PRGNAM-$VERSION +mkdir -p $PKG/usr/share/applications +mkdir -p $PKG/usr/share/pixmaps +install -m 644 $CWD/xpsk31.desktop $PKG/usr/share/applications +install -m 644 $CWD/xpsk31.png $PKG/usr/share/pixmaps + 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 @@ -97,6 +102,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/xpsk31/xpsk31.desktop b/ham/xpsk31/xpsk31.desktop new file mode 100644 index 0000000000000..6f6196784ee84 --- /dev/null +++ b/ham/xpsk31/xpsk31.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xpsk31 +GenericName=xpsk31 +Comment=GTK+ graphical version of lpsk31 +Exec=xpsk31 +Icon=xpsk31 +Terminal=false +Type=Application +Categories=Network;HamRadio; +Version=1.0 diff --git a/ham/xpsk31/xpsk31.png b/ham/xpsk31/xpsk31.png Binary files differnew file mode 100644 index 0000000000000..91574d68ccdc3 --- /dev/null +++ b/ham/xpsk31/xpsk31.png |