# Distributed under the terms of the GNU General Public License v2 # Copyright 2018 Gluzskiy Alexandr require github [ user=shundhammer tag=${PV} ] require gtk-icon-cache freedesktop-desktop qmake [ slot=5 ] export_exlib_phases src_prepare src_install pkg_postinst pkg_postrm SUMMARY="Qt-based directory statistics: KDirStat without any KDE -- from the author of the original KDirStat." LICENCES="GPL-2" SLOT="0" DEPENDENCIES=" build+run: x11-libs/qtbase:5[gui] " qdirstat_src_prepare() { edo sed "s|INSTALL_PREFIX/bin|INSTALL_PREFIX/$(exhost --target)/bin|" \ -i src/src.pro \ -i scripts/scripts.pro edo sed "/doc[.]path =/ s|${PN}|${PNV}|" \ -i doc/doc.pro \ -i doc/stats/stats.pro } qdirstat_src_install() { default # Can't get mans to install nonfatal edo rmdir "${IMAGE}"/usr/share/man/man1 nonfatal edo rmdir "${IMAGE}"/usr/share/man } qdirstat_pkg_postinst() { freedesktop-desktop_pkg_postinst gtk-icon-cache_pkg_postinst } qdirstat_pkg_postrm() { freedesktop-desktop_pkg_postrm gtk-icon-cache_pkg_postrm }