aboutsummaryrefslogtreecommitdiffstats
path: root/community/dolphin/APKBUILD
blob: 6ff0f849c51dfedfad055bccc769e199e82d5182 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=dolphin
pkgver=23.08.3
pkgrel=0
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://kde.org/applications/system/dolphin"
pkgdesc="KDE File Manager"
license="GPL-2.0-only"
depends="
	udisks2
	kio-extras
	"
depends_dev="
	baloo5-dev
	baloo-widgets-dev
	kactivities5-dev
	kbookmarks5-dev
	kcmutils5-dev
	kcompletion5-dev
	kconfig5-dev
	kcoreaddons5-dev
	kcrash5-dev
	kdbusaddons5-dev
	kdoctools5-dev
	kfilemetadata5-dev
	ki18n5-dev
	kiconthemes5-dev
	kinit5-dev
	kio5-dev
	knewstuff5-dev
	knotifications5-dev
	kparts5-dev
	ktextwidgets5-dev
	kuserfeedback-dev
	kwindowsystem5-dev
	musl-fts-dev
	phonon-dev
	qt5-qtbase-dev
	solid5-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	ruby-test-unit
	samurai
	"
checkdepends="
	xvfb-run
	dbus
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-zsh-completion"
_repo_url="https://invent.kde.org/system/dolphin.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/dolphin-$pkgver.tar.xz
	0001-Fix-musl-build-by-using-fts-from-external-library.patch
	"

build() {
	LDFLAGS="$LDFLAGS -Wl,-z,stack-size=0x100000" \
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	# kfileitemmodeltest, placesitemmodeltest, dolphinmainwindowtest and kitemlistcontrollertest are broken
	xvfb-run ctest --test-dir build --output-on-failure -E "(kfileitemmodel|placesitemmodel|dolphinmainwindow|kitemlistcontroller)test"
}

package() {
	DESTDIR="$pkgdir" cmake --install build

	# We don't ship systemd
	rm -r "$pkgdir"/usr/lib/systemd
}

sha512sums="
96736291a63f748ecf88783dd0740ad33eca6fb2678ef9e68eec8819f135b2158cc3c12e3bf3b34a188acc41954ee4f5c6d0c24a6b37f66449ed0213615ec514  dolphin-23.08.3.tar.xz
5b3a1095d519a2d2e875e4dc468f170fd19515963ad4946268533053785b0b3beee57ee9f8d0650de5cb5534dcc948f61327fd836908371cfccf279eea296915  0001-Fix-musl-build-by-using-fts-from-external-library.patch
"