aboutsummaryrefslogtreecommitdiffstats
path: root/community/dolphin/APKBUILD
blob: 50bd66e32e316a35c5feaa56616668bf5fcc2d22 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=dolphin
pkgver=19.12.3
pkgrel=0
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://kde.org/applications/system/dolphin"
pkgdesc="KDE File Manager"
license="GPL-2.0-only"
depends="udisks2"
depends_dev="qt5-qtbase-dev kdoctools-dev kinit-dev kcmutils-dev knewstuff-dev
	kcoreaddons-dev ki18n-dev kdbusaddons-dev kbookmarks-dev kconfig-dev
	kio-dev kparts-dev solid-dev kiconthemes-dev kcompletion-dev
	ktextwidgets-dev knotifications-dev kcrash-dev kwindowsystem-dev
	phonon-dev baloo-dev baloo-widgets-dev kfilemetadata-dev kactivities-dev"
makedepends="$depends_dev extra-cmake-modules ruby-test-unit"
checkdepends="xvfb-run dbus"
source="https://download.kde.org/stable/release-service/$pkgver/src/dolphin-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make -C build
}

check() {
	cd build
	# kfileitemmodeltest, placesitemmodeltest and dolphinmainwindowtest are broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(kfileitemmodel|placesitemmodel|dolphinmainwindow)test"
}

package() {
	DESTDIR="$pkgdir" make -C build install
}

sha512sums="d4922774adea1aa5f68654f5fc0db5e2da653487ffbf8bc519d1b03f141355cedfb4d52aebf6570ab2fb40a0edac2bba42ecece983cbf31dca2ee02fa3b98fb5  dolphin-19.12.3.tar.xz"