games-roguelike/cataclysm-dda: fix the icon name

Reported by Lilia.

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2026-03-07 22:45:05 +09:00
parent 5e8ba7eeb8
commit d82781c81f
2 changed files with 12 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2024-2025 Gentoo Authors
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -101,11 +101,13 @@ src_prepare() {
sed -i "s/const size_type/size_type/" \
"src/third-party/flatbuffers/stl_emulation.h" || die
sed -i "s/cataclysm-tiles/cataclysm-tiles-${SLOT}/g" \
"data/xdg/org.cataclysmdda.CataclysmDDA.desktop" || die
local f="org.cataclysmdda.CataclysmDDA"
sed -i \
-e "s/cataclysm-tiles/cataclysm-tiles-${SLOT}/g" \
-e "s/${f}/${f}-${SLOT}/g" \
"data/xdg/${f}.desktop" || die
mv "data/xdg/${f}.desktop" "data/xdg/${f}-${SLOT}.desktop" || die
mv "data/xdg/${f}.svg" "data/xdg/${f}-${SLOT}.svg" || die
mv "data/xdg/${f}.appdata.xml" "data/xdg/${f}-${SLOT}.appdata.xml" || die

View File

@@ -1,4 +1,4 @@
# Copyright 2024-2025 Gentoo Authors
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -96,11 +96,13 @@ src_prepare() {
sed -i "s#data#${EPREFIX}/usr/share/${PN}-${SLOT}#" \
"data/fontdata.json" || die
sed -i "s/cataclysm-tiles/cataclysm-tiles-${SLOT}/g" \
"data/xdg/org.cataclysmdda.CataclysmDDA.desktop" || die
local f="org.cataclysmdda.CataclysmDDA"
sed -i \
-e "s/cataclysm-tiles/cataclysm-tiles-${SLOT}/g" \
-e "s/${f}/${f}-${SLOT}/g" \
"data/xdg/${f}.desktop" || die
mv "data/xdg/${f}.desktop" "data/xdg/${f}-${SLOT}.desktop" || die
mv "data/xdg/${f}.svg" "data/xdg/${f}-${SLOT}.svg" || die
mv "data/xdg/${f}.appdata.xml" "data/xdg/${f}-${SLOT}.appdata.xml" || die