# Maintainer: Guilhem Saurel # Contributor: Yunhui Fu pkgname=tulip pkgver=5.7.3 pkgrel=1 pkgdesc='An information visualization framework dedicated to the analysis and visualization of relational data.' arch=( 'i686' 'x86_64' 'armv6' 'armv6h' 'arm7h' ) url='http://tulip.labri.fr/' license=('GPL') depends=( 'qt6-base' 'libjpeg' 'libpng' 'zlib' 'glew' 'libxml2' 'freetype2' 'qhull' 'quazip-qt6' 'yajl' 'python' 'desktop-file-utils' ) makedepends=( 'cmake' 'cppunit' 'sip' ) optdepends=( 'doxygen' 'python-sphinx' ) source=( "https://sourceforge.net/projects/auber/files/tulip/tulip-${pkgver}/tulip-${pkgver}_src.tar.gz" "tulip-894.patch" ) sha256sums=('6aba42f85b0360631fe3ba61b52cf28e3bc383f518652f9a90e7b90987da8dd5' '59430c405e5ce81729ed0582e3ec02b89b2e682341c3c79e12143e38c1558fad') prepare() { cd "$pkgbase-$pkgver" patch -p0 -i "$srcdir/tulip-894.patch" } build() { cmake -B "build-$pkgver" -S "$pkgbase-$pkgver" \ -DTULIP_BUILD_TESTS=ON \ -DTULIP_USE_QT6=ON \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_PREFIX=/usr \ -Wno-dev cmake --build "build-$pkgver" } #check() { #cmake --build "build-$pkgver" -t test ##The following tests FAILED: ##16 - PushPopTest (Subprocess aborted) ##31 - TulipPluginsLoadingTest (Subprocess aborted) ##35 - ExternalPluginsBuildTest (Failed) #} package() { DESTDIR="$pkgdir/" cmake --build "build-$pkgver" -t install }