description="A cross-platform application and UI framework, QtCharts files"
url="http://qt-project.org/"

packager="Tnut <tnut@nutyx.org>"
contributors="Pierre,Rems,Tnut,Spiky"

makedepends=(qtbase qtdeclarative)

name=qtcharts
version=5.15.8

_name="${name}-everywhere-opensource-src"

source=(https://download.qt.io/official_releases/qt/${version:0:4}/$version/submodules/${_name}-${version}.tar.xz)

build() {
mkdir build
cd    build

qmake ../${_name/-opensource/}-${version}
make
make INSTALL_ROOT=$PKG install

# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  find "$PKG/usr/lib" -type f -name '*.prl' \
       -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
# Obsolet Lib
rm $PKG/usr/lib/libQt5Charts.la
}
