APKBUILD 1.14 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=analitza
4
pkgver=21.04.1
5
pkgrel=0
6
# armhf blocked by extra-cmake-modules
7
# mips blocked by eigen -> suitesparse -> openblas
8 9
# s390x blocked by qt5-qtbase-x11
arch="all !armhf !mips !mips64 !s390x"
Bart Ribbers's avatar
Bart Ribbers committed
10 11 12
url="https://edu.kde.org/"
pkgdesc="A library to add mathematical features to your program"
license="GPL-2.0-or-later AND GFDL-1.2-only"
13 14 15 16 17 18 19 20
makedepends="
	eigen-dev
	extra-cmake-modules
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	"
Bart Ribbers's avatar
Bart Ribbers committed
21
checkdepends="xvfb-run"
22
source="https://download.kde.org/stable/release-service/$pkgver/src/analitza-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
23 24 25
subpackages="$pkgname-dev $pkgname-lang"

build() {
26
	cmake -B build \
27
		-DCMAKE_BUILD_TYPE=None \
Bart Ribbers's avatar
Bart Ribbers committed
28 29
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
30
	cmake --build build
Bart Ribbers's avatar
Bart Ribbers committed
31 32 33
}

check() {
34
	cd build
Bart Ribbers's avatar
Bart Ribbers committed
35 36 37 38
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
39
	DESTDIR="$pkgdir" cmake --build build --target install
Bart Ribbers's avatar
Bart Ribbers committed
40 41
}

42 43 44
sha512sums="
7c76e9ee0ff56cc95efa0b53a70ad84608a9ef4ccdd55827cfa9f5b44c27b021e654dff3acd56febbc1765a06ecaf6bd021f04c6016fff6bd6c369c018420902  analitza-21.04.1.tar.xz
"