diff options
author | Jeremy Hansen <jebrhansen+SBo@gmail.com> | 2017-11-11 03:08:12 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:57 +0700 |
commit | d76adf26e8f655f818ff2bace1ea5c484674b48e (patch) | |
tree | fc5084f76ed84fd5bf57ef3064389cf613faacea | |
parent | aef2baa8e15806eb8777f0272606b590a65cc057 (diff) |
network/transgui: Added a desktop menu entry
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | network/transgui/doinst.sh | 9 | ||||
-rw-r--r-- | network/transgui/transgui.SlackBuild | 6 | ||||
-rw-r--r-- | network/transgui/transgui.desktop | 11 |
3 files changed, 26 insertions, 0 deletions
diff --git a/network/transgui/doinst.sh b/network/transgui/doinst.sh new file mode 100644 index 0000000000000..afea6d71dcdd4 --- /dev/null +++ b/network/transgui/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/network/transgui/transgui.SlackBuild b/network/transgui/transgui.SlackBuild index 102414275d87b..3f89f3da3e5da 100644 --- a/network/transgui/transgui.SlackBuild +++ b/network/transgui/transgui.SlackBuild @@ -80,6 +80,11 @@ mkdir -p $PKG/usr/share/$PRGNAM/lang cp lang/transgui.* $PKG/usr/share/$PRGNAM/lang/ rm $PKG/usr/share/$PRGNAM/lang/transgui.template +# Add menu entry -- thanks to Arch for the .desktop file +mkdir -p $PKG/usr/share/{applications,pixmaps} +cp $CWD/transgui.desktop $PKG/usr/share/applications/ +cp transgui.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 @@ -90,6 +95,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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/network/transgui/transgui.desktop b/network/transgui/transgui.desktop new file mode 100644 index 0000000000000..1fc7720bae9a8 --- /dev/null +++ b/network/transgui/transgui.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Transmission Remote GUI +GenericName=TransGUI +Comment=Cross platform remote GUI for the Transmission daemon +Exec=/usr/bin/transgui +Icon=/usr/share/pixmaps/transgui.png +Terminal=false +Type=Application +Categories=Network;FileTransfer;P2P;GTK; +MimeType=application/x-bittorrent;application/x-torrent;x-scheme-handler/magnet; |