summaryrefslogblamecommitdiff
path: root/user/dolphin/APKBUILD
blob: c7ffa7108b8ee1eb4812146f3e0b9aecfa1ff14a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                      
                                                            
                      
                                               



                                                                               
                                                                       
                                         
                                        
                                                                                           

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=dolphin
pkgver=19.12.3
pkgrel=0
pkgdesc="Lightweight desktop file manager"
url="https://www.kde.org/applications/system/dolphin/"
arch="all"
options="!check"  # Tests require X11 and D-Bus session bus.
license="GPL-2.0-only"
depends="ffmpegthumbs kdegraphics-thumbnailers"
makedepends="cmake extra-cmake-modules 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
	baloo-dev kfilemetadata-dev kdelibs4support-dev kactivities-dev
	baloo-widgets-dev ruby-test-unit"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/dolphin-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

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