From 1d9201b467118a821fbcafc4e4217ed4ec3927ce Mon Sep 17 00:00:00 2001 From: JK Wood Date: Mon, 21 Jul 2014 19:16:02 +0700 Subject: ham/linpsk: Added desktop file and icon. Signed-off-by: Willy Sudiarto Raharjo --- ham/linpsk/doinst.sh | 3 +++ ham/linpsk/linpsk.SlackBuild | 9 ++++++++- ham/linpsk/linpsk.desktop | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 ham/linpsk/doinst.sh create mode 100644 ham/linpsk/linpsk.desktop (limited to 'ham/linpsk') diff --git a/ham/linpsk/doinst.sh b/ham/linpsk/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/ham/linpsk/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/linpsk/linpsk.SlackBuild b/ham/linpsk/linpsk.SlackBuild index 5b6ec03311..43051a6da4 100644 --- a/ham/linpsk/linpsk.SlackBuild +++ b/ham/linpsk/linpsk.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=linpsk VERSION=${VERSION:-1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,6 +73,12 @@ make mkdir -p $PKG/usr/bin install -m 755 bin/linpsk $PKG/usr/bin/ +mkdir -p $PKG/usr/share/applications +install -m 644 $CWD/linpsk.desktop $PKG/usr/share/applications + +mkdir -p $PKG/usr/share/pixmaps +install -m 644 images/linpsk.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 @@ -84,6 +90,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/linpsk/linpsk.desktop b/ham/linpsk/linpsk.desktop new file mode 100644 index 0000000000..db5638649c --- /dev/null +++ b/ham/linpsk/linpsk.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Name=LinPSK +Name[en_US]=LinPSK +Comment=PSK31 for Linux +Comment[en_US]=PSK31 for Linux +Encoding=UTF-8 +Exec=linpsk +Icon=linpsk +StartupNotify=true +Terminal=false +TerminalOptions= +Type=Application +Categories=Application;HamRadio; +X-DCOP-ServiceType=none +X-KDE-SubstituteUID=false -- cgit v1.2.3