goldendict-1.5.0rc2.recipe revision 6fe3ff85
1SUMMARY="Dictionary lookup program"
2DESCRIPTION="GoldenDict is a feature-rich dictionary lookup program, \
3supporting multiple dictionary formats \
4(StarDict/Babylon/Lingvo/Dictd/AARD/MDict/SDict) and online dictionaries, \
5featuring perfect article rendering with the complete markup, illustrations \
6and other content retained, and allowing you to type in words without any \
7accents or correct case."
8HOMEPAGE="http://goldendict.org/"
9COPYRIGHT="2008-2016 Konstantiv Isakov"
10LICENSE="GNU GPL v3"
11REVISION="6"
12SOURCE_URI="https://github.com/goldendict/goldendict/archive/1.5.0-RC2.tar.gz"
13CHECKSUM_SHA256="bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde"
14SOURCE_DIR="goldendict-1.5.0-RC2"
15PATCHES="goldendict-1.5.0rc2.patchset"
16ADDITIONAL_FILES="goldendict.rdef.in"
17
18ARCHITECTURES="!x86_gcc2 x86 x86_64"
19SECONDARY_ARCHITECTURES="x86"
20
21PROVIDES="
22	goldendict$secondaryArchSuffix = $portVersion
23	app:GoldenDict$secondaryArchSuffix = $portVersion
24	"
25REQUIRES="
26	haiku$secondaryArchSuffix
27	lib:libao$secondaryArchSuffix
28	lib:libavcodec$secondaryArchSuffix
29	lib:libavformat$secondaryArchSuffix
30	lib:libavutil$secondaryArchSuffix
31	lib:libbz2$secondaryArchSuffix
32	lib:libexecinfo$secondaryArchSuffix
33	lib:libGL$secondaryArchSuffix
34	lib:libhunspell_1.7$secondaryArchSuffix
35	lib:libiconv$secondaryArchSuffix
36	lib:liblzo2$secondaryArchSuffix
37	lib:libQt5Core$secondaryArchSuffix
38	lib:libQt5Gui$secondaryArchSuffix
39	lib:libQt5Help$secondaryArchSuffix
40	lib:libQt5Network$secondaryArchSuffix
41	lib:libQt5PrintSupport$secondaryArchSuffix
42	lib:libQt5Sql$secondaryArchSuffix
43	lib:libQt5Svg$secondaryArchSuffix
44	lib:libQt5WebKit$secondaryArchSuffix
45	lib:libQt5WebKitWidgets$secondaryArchSuffix
46	lib:libQt5Widgets$secondaryArchSuffix
47	lib:libQt5Xml$secondaryArchSuffix
48	lib:libtiff$secondaryArchSuffix
49	lib:libvorbisfile$secondaryArchSuffix
50	lib:libz$secondaryArchSuffix
51	"
52
53BUILD_REQUIRES="
54	haiku${secondaryArchSuffix}_devel
55	devel:libao$secondaryArchSuffix
56	devel:libavcodec$secondaryArchSuffix
57	devel:libavformat$secondaryArchSuffix
58	devel:libavutil$secondaryArchSuffix
59	devel:libbz2$secondaryArchSuffix
60	devel:libexecinfo$secondaryArchSuffix
61	devel:libGL$secondaryArchSuffix
62	devel:libhunspell_1.7$secondaryArchSuffix
63	devel:libiconv$secondaryArchSuffix
64	devel:liblzo2$secondaryArchSuffix
65	devel:libQt5Core$secondaryArchSuffix
66	devel:libQt5Gui$secondaryArchSuffix
67	devel:libQt5Help$secondaryArchSuffix
68	devel:libQt5Network$secondaryArchSuffix
69	devel:libQt5PrintSupport$secondaryArchSuffix
70	devel:libQt5Sql$secondaryArchSuffix
71	devel:libQt5Svg$secondaryArchSuffix
72	devel:libQt5WebKit$secondaryArchSuffix
73	devel:libQt5WebKitWidgets$secondaryArchSuffix
74	devel:libQt5Widgets$secondaryArchSuffix
75	devel:libQt5Xml$secondaryArchSuffix
76	devel:libtiff$secondaryArchSuffix
77	devel:libvorbisfile$secondaryArchSuffix
78	devel:libz$secondaryArchSuffix
79	"
80BUILD_PREREQUIRES="
81	cmd:gcc$secondaryArchSuffix
82	cmd:lrelease$secondaryArchSuffix >= 5
83	cmd:make
84	cmd:pkg_config$secondaryArchSuffix
85	cmd:qmake$secondaryArchSuffix >= 5
86	"
87
88BUILD()
89{
90	qmake "CONFIG+=no_epwing_support"
91	make $jobArgs
92}
93
94INSTALL()
95{
96	mkdir -p $appsDir/GoldenDict/{locale,help}
97	cp locale/*.qm $appsDir/GoldenDict/locale
98	cp help/*.qch $appsDir/GoldenDict/help
99	cp goldendict $appsDir/GoldenDict/GoldenDict
100
101	local MAJOR="`echo "$portVersion" | cut -d. -f1`"
102	local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
103	local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
104	local MINOR="0" # workaround rc2 in portVersion
105
106	sed \
107		-e "s|@MAJOR@|$MAJOR|" \
108		-e "s|@MIDDLE@|$MIDDLE|" \
109		-e "s|@MINOR@|$MINOR|" \
110		$portDir/additional-files/goldendict.rdef.in > goldendict.rdef
111
112	addResourcesToBinaries goldendict.rdef $appsDir/GoldenDict/GoldenDict
113	addAppDeskbarSymlink $appsDir/GoldenDict/GoldenDict
114}
115