summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-11-18 07:22:17 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-11-18 07:22:17 +0300
commitc8a06423e647ca1723477e44efc12244e3229f6d (patch)
tree24c7e59f7b67a99f58e07d6c90af5f9681a8a12c
parent3b49a7c5c4d76cf9f0af04a379f762533b4fa6a7 (diff)
parentfe14dffdab1c61e6911c7b5d9ee168d5a80f0d63 (diff)
Merge branch 'kapsh/sss-repo-qds'
-rw-r--r--packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0 (renamed from packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0)1
-rw-r--r--packages/sys-apps/qdirstat/qdirstat-scm.exheres-01
-rw-r--r--packages/sys-apps/qdirstat/qdirstat.exlib30
3 files changed, 26 insertions, 6 deletions
diff --git a/packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0 b/packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0
index 2dbde4c..b5e1e55 100644
--- a/packages/sys-apps/qdirstat/qdirstat-1.4.exheres-0
+++ b/packages/sys-apps/qdirstat/qdirstat-1.5.exheres-0
@@ -4,3 +4,4 @@
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 <sss@sss.chaoslab.ru>
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
+}
+