diff options
author | JK Wood <joshuakwood@gmail.com> | 2014-07-21 19:17:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-07-21 19:17:26 +0700 |
commit | 61db789894da2cd135f5f80d7e32c11c6f755279 (patch) | |
tree | ed150fa275d8e7201e4e2930a232d00a0b0043e7 /ham/linlogbook | |
parent | 1d9201b467118a821fbcafc4e4217ed4ec3927ce (diff) |
ham/linlogbook: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/linlogbook')
-rw-r--r-- | ham/linlogbook/doinst.sh | 3 | ||||
-rw-r--r-- | ham/linlogbook/linlogbook.SlackBuild | 9 | ||||
-rw-r--r-- | ham/linlogbook/linlogbook.desktop | 11 |
3 files changed, 22 insertions, 1 deletions
diff --git a/ham/linlogbook/doinst.sh b/ham/linlogbook/doinst.sh new file mode 100644 index 0000000000000..5fb28930db0b9 --- /dev/null +++ b/ham/linlogbook/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/linlogbook/linlogbook.SlackBuild b/ham/linlogbook/linlogbook.SlackBuild index 973c5d38cba7a..5fe56633b0b2c 100644 --- a/ham/linlogbook/linlogbook.SlackBuild +++ b/ham/linlogbook/linlogbook.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=linlogbook VERSION=${VERSION:-0.5} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -74,6 +74,12 @@ make mkdir -p $PKG/usr/bin install -m 755 bin/linlogbook $PKG/usr/bin/ +mkdir -p $PKG/usr/share/pixmaps +install -m 644 images/linlogbook.png $PKG/usr/share/pixmaps + +mkdir -p $PKG/usr/share/applications +install -m 644 $CWD/linlogbook.desktop $PKG/usr/share/applications + 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 @@ -86,6 +92,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/linlogbook/linlogbook.desktop b/ham/linlogbook/linlogbook.desktop new file mode 100644 index 0000000000000..d0de25209fccd --- /dev/null +++ b/ham/linlogbook/linlogbook.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=LinLogBook +GenericName=LinLogBook +Comment=A ham radio logbook for linux +Exec=linlogbook +Icon=linlogbook +Terminal=false +Type=Application +Categories=HamRadio; +Version=1.0 |