blob: c330fcd89e941668ca5c4626908a54bbb5cb3592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>
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
}
|