mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
sci-electronics/surfer: install icon and desktop from source tree
- /-/raw/main/ assets drift and stop matching the recorded Manifest size - the v0.7.0 tarball already ships surfer/assets so the extra fetch is dropped - strip the .png from the desktop Icon key to pass desktop-file validation Closes: https://bugs.gentoo.org/975824 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -735,8 +735,6 @@ SRC_URI="
|
||||
-> f128-${F128_COMMIT}.tar.gz
|
||||
https://github.com/ics-jku/instruction-decoder/archive/${INSTRUCTION_DECODER_COMMIT}.tar.gz
|
||||
-> instruction-decoder-${INSTRUCTION_DECODER_COMMIT}.tar.gz
|
||||
https://gitlab.com/surfer-project/${PN}/-/raw/main/surfer/assets/com.gitlab.surferproject.surfer.png
|
||||
https://gitlab.com/surfer-project/${PN}/-/raw/main/surfer/assets/com.gitlab.surferproject.surfer.desktop
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
|
||||
@@ -813,10 +811,13 @@ src_install() {
|
||||
dobin target/release/surfer
|
||||
dobin target/release/surver
|
||||
|
||||
# Install desktop file and icon (from main branch)
|
||||
# Desktop file expects Icon=com.gitlab.surferproject.surfer.png
|
||||
doicon "${DISTDIR}/com.gitlab.surferproject.surfer.png"
|
||||
domenu "${DISTDIR}/com.gitlab.surferproject.surfer.desktop"
|
||||
# Install desktop file and icon shipped in the source tree. Strip the
|
||||
# .png from the Icon key so the desktop file passes validation, the icon
|
||||
# is resolved by name from /usr/share/pixmaps.
|
||||
doicon "${S}/surfer/assets/com.gitlab.surferproject.surfer.png"
|
||||
sed -i -e '/^Icon=/s/\.png$//' \
|
||||
"${S}/surfer/assets/com.gitlab.surferproject.surfer.desktop" || die
|
||||
domenu "${S}/surfer/assets/com.gitlab.surferproject.surfer.desktop"
|
||||
|
||||
dodoc README.md CHANGELOG.md
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user