aboutsummaryrefslogblamecommitdiffstats
path: root/community/kcalc/APKBUILD
blob: bdb0ed54b828fad1cc7cd6ed013a379587d8fff4 (plain) (tree)
1
2
3
4
5
6
7
8


                                                  
              
        

                                      
                                


                                                          














                           
                                                                                         


                                        
                        
                                         

                                             
                           


         
                



                                          
                                                              

 
                                                                                                                                                                   
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kcalc
pkgver=20.12.1
pkgrel=0
# armhf blocked by extra-cmake-modules
# s390x blocked by kxmlgui
arch="all !armhf !s390x !mips64"
url="https://kde.org/applications/utilities/org.kde.kcalc"
pkgdesc="Scientific Calculator"
license="GPL-2.0-or-later"
makedepends="
	extra-cmake-modules
	gmp-dev
	kconfig-dev
	kconfigwidgets-dev
	kcrash-dev
	kdoctools-dev
	kguiaddons-dev
	ki18n-dev
	kinit-dev
	knotifications-dev
	kxmlgui-dev
	mpfr-dev
	qt5-qtbase-dev
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kcalc-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

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

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="ff11c6711a8e0a2c838307002c5ee567dd5e4839d41e712a67519ac55ebea9ccceadb91a25036a02a49f04b4f9140285e33feeffc3e4828c17249462b417c524  kcalc-20.12.1.tar.xz"