1SUMMARY="Manage your disks, partitions and file systems"
2DESCRIPTION="KDE Partition Manager
3
4WARNING
5KDE Partition Manager is a potentially dangerous program for your data. It \
6has been tested carefully and there are currently no known bugs that could \
7lead to data loss, but nevertheless there is always a chance for an error \
8to ocurr and you might lose your data.
9
10BACK UP YOUR DATA BEFORE USING THIS SOFTWARE!
11This software allows you to manage your disks, partitions and file systems: \
12Create, resize, delete, copy, backup and restore partitions with a large \
13number of supported file systems:
14
15ext2/3/4
16Btrfs
17Linux swap
18Reiserfs
19F2FS
20NTFS
21FAT
22exFAT
23LUKS encryption support
24and more...."
25HOMEPAGE="https://github.com/KDE/partitionmanager/"
26COPYRIGHT="2008-2018 KDE Organisation"
27LICENSE="GNU GPL v2"
28REVISION="1"
29srcGitRev="dfca46250e5ea5261d66e44223500cf1b94bdcb6"
30SOURCE_URI="https://github.com/kde/partitionmanager/archive/$srcGitRev.tar.gz"
31CHECKSUM_SHA256="9d840520a5289a3f9086cd03efa0742f7b90541879ee36354ca66495834c4680"
32SOURCE_DIR="partitionmanager-$srcGitRev"
33ADDITIONAL_FILES="partitionmanager.rdef.in"
34
35ARCHITECTURES="?all"
36SECONDARY_ARCHITECTURES="?x86"
37
38PROVIDES="
39	partitionmanager$secondaryArchSuffix = $portVersion
40	cmd:partitionmanager$secondaryArchSuffix = $portVersion
41	"
42REQUIRES="
43	haiku$secondaryArchSuffix
44	lib:libKF5Auth$secondaryArchSuffix
45	lib:libKF5Codecs$secondaryArchSuffix
46	lib:libKF5Completion$secondaryArchSuffix
47	lib:libKF5ConfigCore$secondaryArchSuffix
48	lib:libKF5ConfigWidgets$secondaryArchSuffix
49	lib:libKF5CoreAddons$secondaryArchSuffix
50	lib:libKF5Crash$secondaryArchSuffix
51	lib:libKF5DBusAddons$secondaryArchSuffix
52	lib:libKF5I18n$secondaryArchSuffix
53	lib:libKF5IconThemes$secondaryArchSuffix
54	lib:libKF5JobWidgets$secondaryArchSuffix
55	lib:libKF5KIOCore$secondaryArchSuffix
56	lib:libKF5Parts$secondaryArchSuffix
57	lib:libKF5Service$secondaryArchSuffix
58	lib:libKF5Solid$secondaryArchSuffix
59	lib:libKF5SonnetCore$secondaryArchSuffix
60	lib:libKF5TextWidgets$secondaryArchSuffix
61	lib:libKF5WidgetsAddons$secondaryArchSuffix
62	lib:libKF5XmlGui$secondaryArchSuffix
63	lib:libkpmcore$secondaryArchSuffix
64	lib:libQt5Core$secondaryArchSuffix
65	lib:libQt5Gui$secondaryArchSuffix
66	lib:libQt5Widgets$secondaryArchSuffix
67	"
68
69BUILD_REQUIRES="
70	haiku${secondaryArchSuffix}_devel
71	extra_cmake_modules >= 5.45
72	devel:libKF5Auth$secondaryArchSuffix
73	devel:libKF5Bookmarks$secondaryArchSuffix
74	devel:libKF5Codecs$secondaryArchSuffix
75	devel:libKF5Completion$secondaryArchSuffix
76	devel:libKF5ConfigCore$secondaryArchSuffix
77	devel:libKF5ConfigWidgets$secondaryArchSuffix
78	devel:libKF5CoreAddons$secondaryArchSuffix
79	devel:libKF5Crash$secondaryArchSuffix
80	devel:libKF5DBusAddons$secondaryArchSuffix
81	devel:libKF5I18n$secondaryArchSuffix
82	devel:libKF5IconThemes$secondaryArchSuffix
83	devel:libKF5ItemViews$secondaryArchSuffix
84	devel:libKF5JobWidgets$secondaryArchSuffix
85	devel:libKF5KIOCore$secondaryArchSuffix
86	devel:libKF5Service$secondaryArchSuffix
87	devel:libKF5Solid$secondaryArchSuffix
88	devel:libKF5WidgetsAddons$secondaryArchSuffix
89	devel:libKF5XmlGui$secondaryArchSuffix
90	devel:libkpmcore$secondaryArchSuffix
91	devel:libQt5Core$secondaryArchSuffix
92	devel:libQt5Gui$secondaryArchSuffix
93	devel:libQt5Widgets$secondaryArchSuffix
94	"
95BUILD_PREREQUIRES="
96	cmd:cmake$secondaryArchSuffix
97	cmd:g++$secondaryArchSuffix
98	cmd:make
99	"
100
101BUILD()
102{
103	sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt
104	mkdir -p build
105	cd build
106	cmake .. \
107		-DCMAKE_INSTALL_PREFIX=$appsDir \
108		-DSHARE_INSTALL_PREFIX=$dataDir \
109		-DECM_DIR=/system/data/cmake/Modules/ECM/cmake
110
111	make $jobArgs
112}
113
114INSTALL()
115{
116	cd build
117	make install
118
119	local APP_SIGNATURE="application/x-vnd.qt5-partitionmanager"
120	local MAJOR="`echo "$portVersion" | cut -d. -f1`"
121	local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
122#	local MINOR="`echo "$portVersion" | cut -d. -f3`"
123	local MINOR="0"
124	local LONG_INFO="$SUMMARY"
125	sed \
126		-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
127		-e "s|@MAJOR@|$MAJOR|" \
128		-e "s|@MIDDLE@|$MIDDLE|" \
129		-e "s|@MINOR@|$MINOR|" \
130		-e "s|@LONG_INFO@|$LONG_INFO|" \
131		$portDir/additional-files/partitionmanager.rdef.in > partitionmanager.rdef
132
133	mv $appsDir/bin/partitionmanager $appsDir/PartitionManager
134	rm -rf $appsDir/bin
135	addResourcesToBinaries partitionmanager.rdef $appsDir/PartitionManager
136	addAppDeskbarSymlink $appsDir/PartitionManager
137}
138