# Contributor: Simon Frankenberger # Maintainer: Bart Ribbers pkgname=qt5-qtcharts pkgver=5.15.8_git20221110 pkgrel=0 _commit="e30be213e483f2d6f3c40af0cbdc11a8e92e2026" pkgdesc="Qt5 - Support for rendering and displaying SVG" url="https://www.qt.io/developers/" arch="all" license="(LGPL-2.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later) AND Qt-GPL-exception-1.0" depends_dev=" qt5-qtdeclarative-dev zlib-dev " makedepends="$depends_dev qt5-qtbase-dev " subpackages="$pkgname-dev" case $pkgver in *_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://dev.alpinelinux.org/archive/qt/qtcharts-$_commit.tar.xz" builddir="$srcdir/qtcharts-$_commit" _disturl="dev.alpinelinux.org:/archive/qt/" snapshot() { clean deps mkdir -p "$srcdir" && cd "$srcdir" git clone https://invent.kde.org/qt/qt/qtcharts.git && cd qtcharts git archive --format tar --prefix=qtcharts-$_commit/ $_commit | xz -T0 -9 -vv - > $SRCDEST/qtcharts-$_commit.tar.xz rsync --progress -La $SRCDEST/qtcharts-$_commit.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=" f8c5bb942ceeb4b30eea5dc7b1607ab90fd740cde87289424ad8960da570fabb8c50833c6c48de482d2f21e16d5360bdfab313ce649ff8124f97f9edb5b532df qtcharts-e30be213e483f2d6f3c40af0cbdc11a8e92e2026.tar.xz "