summaryrefslogtreecommitdiff
path: root/ham/xwxapt
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2014-07-18 11:03:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-18 11:04:44 +0700
commit863b1e283e47c0abc684adfb759cfef3d43ee615 (patch)
tree598aa2949ad67b513d6fbbaaec8273f66b36e955 /ham/xwxapt
parent267212da180aa49e9f7400a4457f61b87312bf88 (diff)
downloadslackbuilds-863b1e283e47c0abc684adfb759cfef3d43ee615.tar.gz
ham/xwxapt: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/xwxapt')
-rw-r--r--ham/xwxapt/doinst.sh3
-rw-r--r--ham/xwxapt/xwxapt.SlackBuild8
-rw-r--r--ham/xwxapt/xwxapt.desktop12
-rw-r--r--ham/xwxapt/xwxapt.pngbin0 -> 6628 bytes
4 files changed, 22 insertions, 1 deletions
diff --git a/ham/xwxapt/doinst.sh b/ham/xwxapt/doinst.sh
new file mode 100644
index 0000000000..5fb28930db
--- /dev/null
+++ b/ham/xwxapt/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/xwxapt/xwxapt.SlackBuild b/ham/xwxapt/xwxapt.SlackBuild
index d8815c4cca..75ebd834d7 100644
--- a/ham/xwxapt/xwxapt.SlackBuild
+++ b/ham/xwxapt/xwxapt.SlackBuild
@@ -22,7 +22,7 @@
PRGNAM=xwxapt
VERSION=${VERSION:-2.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -87,6 +87,11 @@ mkdir -p $PKG/usr/share/$PRGNAM-$VERSION/xwxapt/images
mkdir -p $PKG/usr/share/$PRGNAM-$VERSION/xwxapt/record
install -m 644 xwxapt/xwxaptrc $PKG/usr/share/$PRGNAM-$VERSION/xwxapt/
+mkdir -p $PKG/usr/share/applications/
+mkdir -p $PKG/usr/share/pixmaps
+install -m 644 $CWD/xwxapt.desktop $PKG/usr/share/applications
+install -m 644 $CWD/xwxapt.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
@@ -98,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/xwxapt/xwxapt.desktop b/ham/xwxapt/xwxapt.desktop
new file mode 100644
index 0000000000..43d312e16d
--- /dev/null
+++ b/ham/xwxapt/xwxapt.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=xwxapt
+GenericName=xwxapt
+Comment=GTK+ graphical application for decoding and saving weather images
+Exec=xwxapt
+Icon=xwxapt.png
+Terminal=false
+Type=Application
+Categories=Network;HamRadio;
+Version=1.0
+X-Desktop-File-Install-Version=0.15
diff --git a/ham/xwxapt/xwxapt.png b/ham/xwxapt/xwxapt.png
new file mode 100644
index 0000000000..91574d68cc
--- /dev/null
+++ b/ham/xwxapt/xwxapt.png
Binary files differ