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


                                                  
              



                                         
                      



                                                                        
                                        
                                                                                       

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                 
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kdf
pkgver=19.12.1
pkgrel=0
pkgdesc="View disk usage information"
url="https://utils.kde.org/projects/kdf/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev kconfigwidgets-dev
	kcoreaddons-dev kdoctools-dev ki18n-dev kiconthemes-dev kio-dev
	kcmutils-dev knotifications-dev kwidgetsaddons-dev kxmlgui-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdf-$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="a6d3ca8dc81f03f5d27f0cb2f2896fd3bcdd573c7ddde42635f249cc9c9c122fef0e915c16294baffdad175d6d5487f851a12fda8c5b6f6595d71395c0dedd74  kdf-19.12.1.tar.xz"