diff options
Diffstat (limited to 'network/transgui')
-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 0000000000..afea6d71dc --- /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 102414275d..3f89f3da3e 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 0000000000..1fc7720bae --- /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; |