# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=rocs pkgver=19.12.2 pkgrel=1 arch="all !armhf" url="https://kde.org/applications/education/org.kde.rocs" pkgdesc="Graph Theory IDE" license="GPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only) AND GFDL-1.2-only" makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtsvg-dev qt5-qtxmlpatterns-dev karchive-dev kconfig-dev kcoreaddons-dev kcrash-dev kdeclarative-dev ki18n-dev kitemviews-dev ktexteditor-dev kxmlgui-dev kdoctools-dev boost-dev grantlee-dev" checkdepends="xvfb-run" source="https://download.kde.org/stable/release-service/$pkgver/src/rocs-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang $pkgname-dev" build() { cmake -B "$builddir"/build \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make -C build } check() { cd "$builddir"/build # TestTgfFileFormat, TestRocs1FileFormat, TestRocs2FileFormat, and # graphtheory-test_graphoperations are broken # TestProject requires OpenGL local skipped_tests="(" local tests=" TestTgfFileFormat TestRocs1FileFormat TestRocs2FileFormat graphtheory-test_graphoperations TestProject" for test in $tests; do skipped_tests="$skipped_tests|$test" done skipped_tests="$skipped_tests)" CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests" } package() { DESTDIR="$pkgdir" make -C build install } sha512sums="d42bc5c8d53143579152112f50a85f234e5e43ad34699384a5801b0863b02ec34c26cfa158410a4f2cac108cd3e0dde155ed0f799586dbf9beed02e5a323bd71 rocs-19.12.2.tar.xz"