guru/games-emulation/mupen64plus-qt/mupen64plus-qt-9999.ebuild
Samuel Bauer 251fdb5768
games-emulation/mupen64plus-qt: translations directory
Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
2025-02-27 23:02:54 +01:00

34 lines
822 B
Bash

# Copyright 2018-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake git-r3
DESCRIPTION="A basic launcher for Mupen64Plus"
HOMEPAGE="https://github.com/dh4/mupen64plus-qt"
EGIT_REPO_URI="https://github.com/dh4/mupen64plus-qt"
LICENSE="BSD"
SLOT="0"
RDEPEND="
dev-libs/quazip[qt6]
dev-qt/qtbase:6[gui,network,sql,widgets,xml]
"
DEPEND=">=games-emulation/mupen64plus-core-2.5
${RDEPEND}"
src_install() {
cmake_src_install
rm -rf "${D}"/usr/$(get_libdir)/ \
"${D}"/usr/plugins/ \
"${D}"/usr/bin/qt.conf || die
mkdir -p "${D}"/usr/share/qt6 || die
mv "${D}"/usr/translations "${D}"/usr/share/qt6/ || die
for i in "${D}"/usr/share/qt6/translations/*; do
echo mv "${i}" "${i/qt_/mupen64plus-qt_}"
mv "${i}" "${i/qt_/mupen64plus-qt_}" || die
done
}