1SUMMARY="Plugins for Dolphin"
2DESCRIPTION="Dolphin integration for revision control systems, Dropbox, and disk images."
3HOMEPAGE="https://invent.kde.org/sdk/dolphin-plugins"
4COPYRIGHT="2010-2024 KDE Organisation"
5LICENSE="CC0 v1.0
6	GNU GPL v2"
7REVISION="1"
8SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/dolphin-plugins-$portVersion.tar.xz"
9CHECKSUM_SHA256="2f448eea478dc178b2bb92071ad1a5fe85404879519be6534914fd865e6bc05d"
10SOURCE_DIR="dolphin-plugins-$portVersion"
11
12ARCHITECTURES="all !x86_gcc2"
13SECONDARY_ARCHITECTURES="x86"
14
15PROVIDES="
16	dolphin_plugins$secondaryArchSuffix = $portVersion
17	"
18REQUIRES="
19	haiku$secondaryArchSuffix
20	lib:libGL$secondaryArchSuffix
21	lib:libintl$secondaryArchSuffix
22	# KF5
23	lib:libdolphinvcs$secondaryArchSuffix
24	lib:libKF5I18n$secondaryArchSuffix
25	lib:libKF5Solid$secondaryArchSuffix
26	lib:libKF5TextEditor$secondaryArchSuffix
27	lib:libKF5TextWidgets$secondaryArchSuffix
28	lib:libKF5WidgetsAddons$secondaryArchSuffix
29	lib:libKF5XmlGui$secondaryArchSuffix
30	# Qt5
31	lib:libQt5Core$secondaryArchSuffix
32	lib:libQt5DBus$secondaryArchSuffix
33	lib:libQt5Gui$secondaryArchSuffix
34	lib:libQt5Network$secondaryArchSuffix
35	lib:libQt5Qml$secondaryArchSuffix
36	lib:libQt5Widgets$secondaryArchSuffix
37	"
38
39BUILD_REQUIRES="
40	haiku${secondaryArchSuffix}_devel
41	# KF5
42	extra_cmake_modules$secondaryArchSuffix
43	devel:libdolphinvcs$secondaryArchSuffix
44	devel:libKF5Auth$secondaryArchSuffix
45	devel:libKF5Bookmarks$secondaryArchSuffix
46	devel:libKF5Codecs$secondaryArchSuffix
47	devel:libKF5Completion$secondaryArchSuffix
48	devel:libKF5ConfigCore$secondaryArchSuffix
49	devel:libKF5ConfigWidgets$secondaryArchSuffix
50	devel:libKF5CoreAddons$secondaryArchSuffix
51	devel:libKF5I18n$secondaryArchSuffix
52	devel:libKF5ItemViews$secondaryArchSuffix
53	devel:libKF5JobWidgets$secondaryArchSuffix
54	devel:libKF5KIOCore$secondaryArchSuffix
55	devel:libKF5Parts$secondaryArchSuffix
56	devel:libKF5Service$secondaryArchSuffix
57	devel:libKF5Solid$secondaryArchSuffix
58	devel:libKF5SonnetCore$secondaryArchSuffix
59	devel:libKF5SyntaxHighlighting$secondaryArchSuffix
60	devel:libKF5TextEditor$secondaryArchSuffix
61	devel:libKF5TextWidgets$secondaryArchSuffix
62	devel:libKF5WidgetsAddons$secondaryArchSuffix
63	devel:libKF5WindowSystem$secondaryArchSuffix
64	devel:libKF5XmlGui$secondaryArchSuffix
65	# Qt5
66	devel:libQt5Core$secondaryArchSuffix
67	devel:libQt5Qml$secondaryArchSuffix
68	"
69BUILD_PREREQUIRES="
70	cmd:cmake
71	cmd:g++$secondaryArchSuffix
72	cmd:make
73	cmd:msgfmt
74	cmd:msgmerge
75	cmd:pkg_config$secondaryArchSuffix
76	cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
77	"
78
79BUILD()
80{
81	cmake -Bbuild -S. $cmakeDirArgs \
82		-DCMAKE_BUILD_TYPE=Release \
83		-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
84		-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
85	make -C build $jobArgs
86}
87
88INSTALL()
89{
90	make -C build install
91}
92