summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/rbutil/rbutil-1.4.1.ebuild')
-rw-r--r--app-misc/rbutil/rbutil-1.4.1.ebuild14
1 files changed, 12 insertions, 2 deletions
diff --git a/app-misc/rbutil/rbutil-1.4.1.ebuild b/app-misc/rbutil/rbutil-1.4.1.ebuild
index 3ba0000d120..f558a5e9dd9 100644
--- a/app-misc/rbutil/rbutil-1.4.1.ebuild
+++ b/app-misc/rbutil/rbutil-1.4.1.ebuild
@@ -28,18 +28,22 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="dev-qt/linguist-tools:5"
-S="${WORKDIR}/RockboxUtility-v${PV}/${PN}/${PN}qt"
+S="${WORKDIR}/RockboxUtility-v${PV}"
+QTDIR="${PN}/${PN}qt"
PATCHES=(
"${FILESDIR}"/${PN}-1.4.1-quazip.patch
+ "${FILESDIR}"/0001-imxtools-sbtools-fix-compilation-with-gcc-10.patch
)
src_prepare() {
xdg_src_prepare
- rm -rv quazip/ zlib/ || die
+ rm -rv "${QTDIR}"/{quazip,zlib}/ || die
}
src_configure() {
+ cd "${QTDIR}" || die
+
# Generate binary translations.
"$(qt5_get_bindir)"/lrelease ${PN}qt.pro || die
@@ -47,7 +51,13 @@ src_configure() {
eqmake5 CONFIG+="noccache $(use debug && echo dbg)"
}
+src_compile() {
+ emake -C "${QTDIR}"
+}
+
src_install() {
+ cd "${QTDIR}" || die
+
local icon size
for icon in icons/rockbox-*.png; do
size=${icon##*-}