summaryrefslogtreecommitdiff
path: root/ham/linpsk
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2014-07-21 19:16:02 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-21 19:16:02 +0700
commit1d9201b467118a821fbcafc4e4217ed4ec3927ce (patch)
tree9ee821812b622a101ff32a430065fcc07ee268e0 /ham/linpsk
parent58c99c5ce44a845c6b7871592d4bcdbd60bfeeb3 (diff)
downloadslackbuilds-1d9201b467118a821fbcafc4e4217ed4ec3927ce.tar.gz
ham/linpsk: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/linpsk')
-rw-r--r--ham/linpsk/doinst.sh3
-rw-r--r--ham/linpsk/linpsk.SlackBuild9
-rw-r--r--ham/linpsk/linpsk.desktop15
3 files changed, 26 insertions, 1 deletions
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