From 256a0c56a072cb1f1632e49adff009e372a82bf6 Mon Sep 17 00:00:00 2001 From: JK Wood Date: Mon, 21 Jul 2014 19:19:45 +0700 Subject: ham/xfhell: Added desktop file and icon. Signed-off-by: Willy Sudiarto Raharjo --- ham/xfhell/doinst.sh | 3 +++ ham/xfhell/xfhell.SlackBuild | 9 ++++++++- ham/xfhell/xfhell.desktop | 12 ++++++++++++ ham/xfhell/xfhell.png | Bin 0 -> 6628 bytes 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 ham/xfhell/doinst.sh create mode 100644 ham/xfhell/xfhell.desktop create mode 100644 ham/xfhell/xfhell.png (limited to 'ham') diff --git a/ham/xfhell/doinst.sh b/ham/xfhell/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/ham/xfhell/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/xfhell/xfhell.SlackBuild b/ham/xfhell/xfhell.SlackBuild index 85f8d324d9..a62ac02dea 100644 --- a/ham/xfhell/xfhell.SlackBuild +++ b/ham/xfhell/xfhell.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=xfhell VERSION=${VERSION:-2.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -83,6 +83,12 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +mkdir -p $PKG/usr/share/applications +install -m 644 $CWD/xfhell.desktop $PKG/usr/share/applications + +mkdir -p $PKG/usr/share/pixmaps +install -m 644 $CWD/xfhell.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 +103,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/xfhell/xfhell.desktop b/ham/xfhell/xfhell.desktop new file mode 100644 index 0000000000..d488366b9f --- /dev/null +++ b/ham/xfhell/xfhell.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=xfhell +GenericName=xfhell +Comment=GTK+ graphical application for the Hellschreiber communication mode +Exec=xfhell +Icon=xfhell +Terminal=false +Type=Application +Categories=Network;HamRadio; +Version=1.0 +X-Desktop-File-Install-Version=0.15 diff --git a/ham/xfhell/xfhell.png b/ham/xfhell/xfhell.png new file mode 100644 index 0000000000..91574d68cc Binary files /dev/null and b/ham/xfhell/xfhell.png differ -- cgit v1.2.3