diff --git a/net-im/riot-web/files/riot-web.desktop b/net-im/riot-web/files/riot-web.desktop new file mode 100644 index 0000000..e76add8 --- /dev/null +++ b/net-im/riot-web/files/riot-web.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Riot Web +Comment=A glossy Matrix collaboration client for the web. +Exec=/usr/bin/riot-web +Icon={::install_location::}/electron_app/img/riot.png +Terminal=false +Type=Application +Categories=Network;Chat;Telephony;VideoConference; +StartupNotify=true diff --git a/net-im/riot-web/riot-web-1.4.2.ebuild b/net-im/riot-web/riot-web-1.4.2.ebuild index f8c1054..fd87658 100644 --- a/net-im/riot-web/riot-web-1.4.2.ebuild +++ b/net-im/riot-web/riot-web-1.4.2.ebuild @@ -102,6 +102,9 @@ src_install() { insinto "${DESTINATION}/electron_app" doins -r "${S}/origin_migrator" + cp "${FILESDIR}/${PN}.desktop" "${T}" + sed -e 's@{::install_location::}@'"${DESTINATION}"'@g' "${T}/${PN}.desktop" -i + domenu "${T}/${PN}.desktop" dosym "${DESTINATION}/${PN}" "/usr/bin/${PN}" } diff --git a/net-im/riot-web/riot-web-1.5.0.ebuild b/net-im/riot-web/riot-web-1.5.0.ebuild index f8c1054..fd87658 100644 --- a/net-im/riot-web/riot-web-1.5.0.ebuild +++ b/net-im/riot-web/riot-web-1.5.0.ebuild @@ -102,6 +102,9 @@ src_install() { insinto "${DESTINATION}/electron_app" doins -r "${S}/origin_migrator" + cp "${FILESDIR}/${PN}.desktop" "${T}" + sed -e 's@{::install_location::}@'"${DESTINATION}"'@g' "${T}/${PN}.desktop" -i + domenu "${T}/${PN}.desktop" dosym "${DESTINATION}/${PN}" "/usr/bin/${PN}" } diff --git a/net-im/riot-web/riot-web-1.5.6.ebuild b/net-im/riot-web/riot-web-1.5.6.ebuild index 7e9d379..105cc9b 100644 --- a/net-im/riot-web/riot-web-1.5.6.ebuild +++ b/net-im/riot-web/riot-web-1.5.6.ebuild @@ -102,6 +102,9 @@ src_install() { insinto "${DESTINATION}/electron_app" doins -r "${S}/origin_migrator" + cp "${FILESDIR}/${PN}.desktop" "${T}" + sed -e 's@{::install_location::}@'"${DESTINATION}"'@g' "${T}/${PN}.desktop" -i + domenu "${T}/${PN}.desktop" dosym "${DESTINATION}/${PN}" "/usr/bin/${PN}" } diff --git a/net-im/riot-web/riot-web-9999.ebuild b/net-im/riot-web/riot-web-9999.ebuild index f8c1054..fd87658 100644 --- a/net-im/riot-web/riot-web-9999.ebuild +++ b/net-im/riot-web/riot-web-9999.ebuild @@ -102,6 +102,9 @@ src_install() { insinto "${DESTINATION}/electron_app" doins -r "${S}/origin_migrator" + cp "${FILESDIR}/${PN}.desktop" "${T}" + sed -e 's@{::install_location::}@'"${DESTINATION}"'@g' "${T}/${PN}.desktop" -i + domenu "${T}/${PN}.desktop" dosym "${DESTINATION}/${PN}" "/usr/bin/${PN}" }