From fe14dffdab1c61e6911c7b5d9ee168d5a80f0d63 Mon Sep 17 00:00:00 2001 From: Alexander Kapshuna Date: Sat, 17 Nov 2018 18:01:22 +0300 Subject: qdirstat: version bump to 1.5 --- packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0 | 6 ----- packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0 | 7 ++++++ packages/sys-apps/qdirstat/qdirstat-scm.exheres-0 | 1 + packages/sys-apps/qdirstat/qdirstat.exlib | 30 ++++++++++++++++++----- 4 files changed, 32 insertions(+), 12 deletions(-) delete mode 100644 packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0 create mode 100644 packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0 diff --git a/packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0 b/packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0 deleted file mode 100644 index 2dbde4c..0000000 --- a/packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0 +++ /dev/null @@ -1,6 +0,0 @@ -# Distributed under the terms of the GNU General Public License v2 -# Copyright 2018 Gluzskiy Alexandr - -require qdirstat - -PLATFORMS="~amd64 ~x86" diff --git a/packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0 b/packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0 new file mode 100644 index 0000000..b5e1e55 --- /dev/null +++ b/packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0 @@ -0,0 +1,7 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr + +require qdirstat + +PLATFORMS="~amd64 ~x86" + diff --git a/packages/sys-apps/qdirstat/qdirstat-scm.exheres-0 b/packages/sys-apps/qdirstat/qdirstat-scm.exheres-0 index 2dbde4c..b5e1e55 100644 --- a/packages/sys-apps/qdirstat/qdirstat-scm.exheres-0 +++ b/packages/sys-apps/qdirstat/qdirstat-scm.exheres-0 @@ -4,3 +4,4 @@ require qdirstat PLATFORMS="~amd64 ~x86" + diff --git a/packages/sys-apps/qdirstat/qdirstat.exlib b/packages/sys-apps/qdirstat/qdirstat.exlib index c6ee2b2..7210523 100644 --- a/packages/sys-apps/qdirstat/qdirstat.exlib +++ b/packages/sys-apps/qdirstat/qdirstat.exlib @@ -2,7 +2,9 @@ # Copyright 2018 Gluzskiy Alexandr require github [ user=shundhammer tag=${PV} force_git_clone=true ] -require qmake [ slot=5 ] +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." @@ -15,13 +17,29 @@ DEPENDENCIES=" x11-libs/qtbase:5[gui] " -export_exlib_phases src_install +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(){ +qdirstat_src_install() { default - edo mkdir "${IMAGE}"/usr/$(exhost --target)/bin -p - edo mv "${IMAGE}"/usr/bin/* "${IMAGE}"/usr/$(exhost --target)/bin/ - edo rmdir "${IMAGE}"/usr/bin + # 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 +} + -- cgit v1.2.3