eiskaltdcpp-2.3.0~git.recipe revision de528bac
1SUMMARY="A cross-platform program that uses the Direct Connect and ADC \
2protocols"
3DESCRIPTION="EiskaltDC++ is a cross-platform program that uses the Direct \
4Connect and ADC protocols. It is compatible with DC++, FlylinkDC++, LinuxDC++ \
5and other DC clients. EiskaltDC++ also interoperates with all common DC hub \
6software."
7HOMEPAGE="https://sourceforge.net/projects/eiskaltdcpp/"
8COPYRIGHT="EiskaltDC++ team"
9LICENSE="GNU GPL v3"
10REVISION="10"
11srcGitRev="aa32b753a5f690f9633ece94e29a6856ee39407d"
12SOURCE_URI="https://github.com/eiskaltdcpp/eiskaltdcpp/archive/$srcGitRev.tar.gz"
13CHECKSUM_SHA256="37f6761861619fb15434d8098512e5923e1024767a79740f71409b2cda08da7b"
14SOURCE_DIR="eiskaltdcpp-$srcGitRev"
15ADDITIONAL_FILES="eiskaltdcpp.rdef.in"
16
17ARCHITECTURES="!x86_gcc2 x86 x86_64"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	eiskaltdcpp$secondaryArchSuffix = $portVersion
22	app:EiskaltDC++ = $portVersion
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	lib:libboost_system$secondaryArchSuffix
27	lib:libbz2$secondaryArchSuffix
28	lib:libcrypto$secondaryArchSuffix
29	lib:libiconv$secondaryArchSuffix
30	lib:libidn$secondaryArchSuffix
31	lib:libintl$secondaryArchSuffix
32	lib:liblua$secondaryArchSuffix
33	lib:libminiupnpc$secondaryArchSuffix
34	lib:libpcre$secondaryArchSuffi
35	lib:libQt5Concurrent$secondaryArchSuffix
36	lib:libQt5Core$secondaryArchSuffix
37	lib:libQt5Gui$secondaryArchSuffix
38	lib:libQt5Multimedia$secondaryArchSuffix
39	lib:libQt5Network$secondaryArchSuffix
40	lib:libQt5Widgets$secondaryArchSuffix
41	lib:libQt5Xml$secondaryArchSuffix
42	lib:libssl$secondaryArchSuffix
43	lib:libz$secondaryArchSuffix
44	"
45
46BUILD_REQUIRES="
47	haiku${secondaryArchSuffix}_devel
48	devel:libboost_system$secondaryArchSuffix
49	devel:libbz2$secondaryArchSuffix
50	devel:libcrypto$secondaryArchSuffix
51	devel:libgl$secondaryArchSuffix
52	devel:libiconv$secondaryArchSuffix
53	devel:libidn$secondaryArchSuffix
54	devel:libintl$secondaryArchSuffix
55	devel:liblua$secondaryArchSuffix
56	devel:libminiupnpc$secondaryArchSuffix
57	devel:libpcre$secondaryArchSuffix
58	devel:libQt5Concurrent$secondaryArchSuffix
59	devel:libQt5Gui$secondaryArchSuffix
60	devel:libQt5Network$secondaryArchSuffix
61	devel:libQt5Widgets$secondaryArchSuffix
62	devel:libQt5Xml$secondaryArchSuffix
63	devel:libssl$secondaryArchSuffix
64	devel:libz$secondaryArchSuffix
65	"
66BUILD_PREREQUIRES="
67	cmd:cmake
68	cmd:gcc$secondaryArchSuffix
69	cmd:ld$secondaryArchSuffix
70	cmd:lrelease$secondaryArchSuffix >= 5
71	cmd:make
72	cmd:pkg_config$secondaryArchSuffix
73	"
74
75BUILD()
76{
77	mkdir -p build
78	cd build
79	cmake .. \
80		-DCMAKE_INSTALL_PREFIX:PATH=$appsDir/Eiskaltdcpp \
81		-DCMAKE_BUILD_TYPE=Release \
82		-DLUA_INCLUDE_DIR="`pkg-config --variable=includedir lua`" \
83		-DJSONRPC_DAEMON=OFF \
84		-DWITH_LUASCRIPTS=ON \
85		-DWITH_EXAMPLES=OFF \
86		-DUSE_ASPELL=OFF \
87		-DDBUS_NOTIFY=OFF
88	make $jobArgs
89}
90
91INSTALL()
92{
93	cd build
94	make install
95
96	MAJOR="`echo "$portVersion" | cut -d. -f1`"
97	MIDDLE="`echo "$portVersion" | cut -d. -f2`"
98#	MINOR="`echo "$portVersion" | cut -d. -f3`"
99	MINOR="10"
100	sed \
101		-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
102		-e "s|@MAJOR@|$MAJOR|" \
103		-e "s|@MIDDLE@|$MIDDLE|" \
104		-e "s|@MINOR@|$MINOR|" \
105		$portDir/additional-files/eiskaltdcpp.rdef.in > eiskaltdcpp.rdef
106
107	addResourcesToBinaries eiskaltdcpp.rdef $appsDir/Eiskaltdcpp/EiskaltDC++
108	addAppDeskbarSymlink $appsDir/Eiskaltdcpp/EiskaltDC++
109}
110