blob: 4a2ca8ca87bcf5af81e0167c37daa7d9be755102 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit qmake-utils xdg-utils
DESCRIPTION="A small, lightweight file manager for desktops based on pure Qt"
HOMEPAGE="http://www.qtfm.org/"
SRC_URI="https://dev.gentoo.org/~jer/${P}.zip"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
sys-apps/file
"
DEPEND="${RDEPEND}
app-arch/unzip
dev-qt/linguist-tools:5
"
PATCHES=( "${FILESDIR}"/${PN}-5.5-gcc6.patch )
S=${WORKDIR}/${PN}-master
src_prepare() {
rm translations/${PN}_XX.ts || die
default
sed -i \
-e '/MimeType=/s|$|;|' \
-e '/Categories=/s|$|;System;FileTools;|' \
${PN}.desktop || die
sed -i -e '/^INSTALLS/s/docs//' ${PN}.pro || die
}
src_configure() {
"$(qt5_get_bindir)"/lrelease translations/*.ts || die
eqmake5
}
src_install() {
emake INSTALL_ROOT="${D}" install
einstalldocs
}
pkg_postinst() {
xdg_desktop_database_update
}
pkg_postrm() {
xdg_desktop_database_update
}
|