# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=qt5-qtdatavis3d pkgver=5.15.10_git20230414 pkgrel=0 _module="${pkgname#qt5-}" _pkgver=d366b0aad8454355acac79eddbab445c1108b1e9 _fullname=$_module-$_pkgver arch="all !armhf" # armhf blocked by qt5-qtdeclarative url="https://www.qt.io/developers/" license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0" pkgdesc="Qt Data Visualization module" makedepends=" qt5-qtbase-dev qt5-qtdeclarative-dev " subpackages="$pkgname-dev $pkgname-doc" source="https://dev.alpinelinux.org/archive/qt/$_fullname.tar.xz" builddir="$srcdir/$_fullname" _disturl="dev.alpinelinux.org:/archive/qt/" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/qt/qt/$_module.git . git archive --format tar --prefix=$_fullname/ $_pkgver > "$SRCDEST"/$_fullname.tar xz -vv -T0 -9 -e "$SRCDEST"/$_fullname.tar rsync --progress -La "$SRCDEST"/$_fullname.tar.xz $_disturl } prepare() { default_prepare # We need to make the build system think we're running in a git repository # so it correctly symlinks during the build mkdir .git } build() { qmake-qt5 make } check() { make check } package() { make INSTALL_ROOT="$pkgdir" install # Drop QMAKE_PRL_BUILD_DIR because reference the build dir find "$pkgdir/usr/lib" -type f -name '*.prl' \ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; install -d "$pkgdir"/usr/share/licenses ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname } sha512sums=" 869d7631650d45d2026c7c6ff6f4875ee9b67dbfcc9a1fe1ac24ae8bb1ea1f7cb79be002d3885db8ddac85e9b2dca17b93e24cc8f78d4f0da9f7997a14d742e1 qtdatavis3d-d366b0aad8454355acac79eddbab445c1108b1e9.tar.xz "