aports/community/cantor/APKBUILD
2024-09-13 13:50:51 +00:00

67 lines
1.6 KiB
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>
# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=cantor
pkgver=24.08.1
pkgrel=0
# armhf blocked by extra-cmake-modules
# ppc64le, s390x, riscv64 and loongarch64 blocked by qt5-qtwebengine
arch="all !armhf !s390x !riscv64 !ppc64le !loongarch64"
url="https://edu.kde.org/cantor/"
pkgdesc="KDE Frontend to Mathematical Software"
license="GPL-2.0-or-later"
makedepends="
analitza-dev
discount-dev
extra-cmake-modules
karchive5-dev
kcompletion5-dev
kconfig5-dev
kcoreaddons5-dev
kcrash5-dev
kdoctools5-dev
ki18n5-dev
kiconthemes5-dev
kio5-dev
knewstuff5-dev
kparts5-dev
kpty5-dev
ktexteditor5-dev
ktextwidgets5-dev
kxmlgui5-dev
poppler-qt5-dev
python3-dev
qt5-qtbase-dev
qt5-qtsvg-dev
qt5-qtwebengine-dev
qt5-qtxmlpatterns-dev
samurai
syntax-highlighting-dev
"
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
_repo_url="https://invent.kde.org/education/cantor.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/cantor-$pkgver.tar.xz"
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
xvfb-run ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
8479b044118229445a8183b4c56428279a7616fe7f283c3fec5278b5c8bf97df456012acdbaefe6304a0e838a01377c8c75ea28def09b88eb3a6de3933ad9248 cantor-24.08.1.tar.xz
"