aboutsummaryrefslogtreecommitdiff
blob: 549a02997009e55521faf212f962437b0fdaf2c6 (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
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit desktop font readme.gentoo-r1 qmake-utils xdg

MY_PV="0.7.2.rc9i"
MY_P="${PN}"-"${MY_PV}"
DESCRIPTION="Simple and powerful application for creating screenplays."
HOMEPAGE="https://kitscenarist.ru/en/"
SRC_URI="https://github.com/dimkanovikov/KITScenarist/releases/download/"${MY_PV}"/src.tar.gz -> "${MY_P}".tar.gz"
S="${WORKDIR}/src"
DOC_CONTENTS="Quick startup hints at https://kitscenarist.ru/en/help/first_glance.html"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

FONT_SUFFIX="ttf"
FONT_S="${S}/bin/scenarist-core/Resources/Fonts"

DEPEND="dev-qt/qtcore:5
		dev-qt/qtgui:5
		dev-qt/qtmultimedia:5
		dev-qt/qtnetwork:5
		dev-qt/qtpositioning:5
		dev-qt/qtprintsupport:5
		dev-qt/qtquickcontrols:5
		dev-qt/qtsql:5
		dev-qt/qtsvg:5
		dev-qt/qtwebengine:5
		dev-qt/qtwidgets:5
		dev-qt/qtxml:5
		sys-libs/zlib[minizip]"
RDEPEND="${DEPEND}"

src_configure() {
	eqmake5 Scenarist.pro
	emake qmake_all
}

src_install() {
	newicon -s 512 bin/scenarist-core/Resources/Icons/logo.png "${PN}".png
	make_desktop_entry "${PN}" "KIT Scenarist" "${PN}" Office
	newbin "${WORKDIR}"/build/Release/bin/scenarist-desktop/Scenarist "${PN}"
	readme.gentoo_create_doc
	font_src_install
}

pkg_postinst() {
	xdg_pkg_postinst
	font_pkg_postinst
	readme.gentoo_print_elog
}

pkg_postrm() {
	xdg_pkg_postrm
	font_pkg_postrm
}