diff options
author | Erich Eckner <git@eckner.net> | 2020-06-03 11:48:21 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-06-03 11:48:21 +0200 |
commit | 8957f2d2fd1ef07f75b5db45df6201ab5a406bd8 (patch) | |
tree | 047df10d990e5fc894f31f1b7945089f85d061b6 | |
parent | 527875fae0d05bbc0416bb1458797aac3507fcdf (diff) | |
download | archlinuxewe-8957f2d2fd1ef07f75b5db45df6201ab5a406bd8.tar.xz |
qwt5-qt5 new
-rw-r--r-- | qwt5-qt5/PKGBUILD | 38 | ||||
-rw-r--r-- | qwt5-qt5/qwtconfig-archlinux.pri | 137 |
2 files changed, 175 insertions, 0 deletions
diff --git a/qwt5-qt5/PKGBUILD b/qwt5-qt5/PKGBUILD new file mode 100644 index 000000000..557f73bd4 --- /dev/null +++ b/qwt5-qt5/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> +# Contributor: Mirko Scholz +pkgname=qwt5-qt5 +_commit=eeacc4497738de159ca6f352d0c8ada353831b53 +pkgver=5.2.3.1 +pkgrel=2 +pkgdesc='Qwt library (version 5.2.3) updated to work with Qt5.' +arch=('i686' 'pentium4' 'x86_64') +license=('custom') +depends=('qt5-base' 'qt5-svg') +url='https://github.com/gbm19/qwt5-qt5' +source=( +"qwt5-qt5-${pkgver}.zip::https://github.com/gbm19/qwt5-qt5/archive/${_commit}.zip" +"qwtconfig-archlinux.pri" +) +sha512sums=('1e8114efd4cd58d2b27034930b6f8541ae3ed59541b0a2c45e9ecbc3a1b38b2c9ceb3ff60b87e36fc8e9ed808d35244ec26a5d9a6f7706791a12c93bc4755506' + 'a7dd5c600b41ff817464a1db3613790b51b62e46f9db861be1be0d3c30c1d3af93f636df520e9ee6d8c47ddc32a9e2b8e1091a0c1f1c0ea76e6fd4587165086c') + +prepare() { + install -Dm644 "qwtconfig-archlinux.pri" "${srcdir}/qwt5-qt5-${_commit}/qwtconfig.pri" +} + +build() { + cd "${srcdir}/qwt5-qt5-${_commit}" + qmake-qt5 qwt.pro + make +} + +package() { + cd "${srcdir}/qwt5-qt5-${_commit}" + make INSTALL_ROOT="${pkgdir}" install + + # remove docs + rm -r "${pkgdir}/usr/share/doc/" + rm -r "${pkgdir}/usr/share/man/" + + install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/qwt5-qt5/qwtconfig-archlinux.pri b/qwt5-qt5/qwtconfig-archlinux.pri new file mode 100644 index 000000000..b8f126127 --- /dev/null +++ b/qwt5-qt5/qwtconfig-archlinux.pri @@ -0,0 +1,137 @@ +###################################################################### +# Install paths +###################################################################### + +VER_MAJ = 5 +VER_MIN = 2 +VER_PAT = 3 +VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT} + +greaterThan(QT_MAJOR_VERSION, 3){ + CONFIG += c++11 +} + +equals(QT_MAJOR_VERSION, 5) { + QT += widgets printsupport +} + +message(Using QT version $$QT_VERSION) + +target.path = $$[QT_INSTALL_LIBS] +doc.path = $$[QT_INSTALL_DOCS] + +VVERSION = $$[QT_VERSION] +isEmpty(VVERSION) { + headers.path = $$[QT_INSTALL_HEADERS]/qwt5-qt3 +} else { + equals(QT_MAJOR_VERSION, 5) { + headers.path = $$[QT_INSTALL_HEADERS]/qwt5-qt5 + } else { + headers.path = $$[QT_INSTALL_HEADERS]/qwt5-qt4 + } +} + +###################################################################### +# qmake internal options +###################################################################### + +CONFIG += qt # Also for Qtopia Core! +CONFIG += warn_on +CONFIG += thread +#CONFIG += silent + +###################################################################### +# release/debug mode +# If you want to build both DEBUG_SUFFIX and RELEASE_SUFFIX +# have to differ to avoid, that they overwrite each other. +###################################################################### + +VVERSION = $$[QT_VERSION] +isEmpty(VVERSION) { + + # Qt 3 + CONFIG += release # release/debug +} +else { + # Qt 4 + win32 { + # On Windows you can't mix release and debug libraries. + # The designer is built in release mode. If you like to use it + # you need a release version. For your own application development you + # might need a debug version. + # Enable debug_and_release + build_all if you want to build both. + + CONFIG += release # release/debug/debug_and_release + #CONFIG += debug_and_release + #CONFIG += build_all + } + else { + CONFIG += release # release/debug + } +} + +###################################################################### +# If you want to have different names for the debug and release +# versions you can add a suffix rule below. +###################################################################### + +DEBUG_SUFFIX = +RELEASE_SUFFIX = + +win32 { + DEBUG_SUFFIX = d +} + +###################################################################### +# Build the static/shared libraries. +# If QwtDll is enabled, a shared library is built, otherwise +# it will be a static library. +###################################################################### + +# CONFIG += QwtDll + +###################################################################### +# QwtPlot enables all classes, that are needed to use the QwtPlot +# widget. +###################################################################### + +CONFIG += QwtPlot + +###################################################################### +# QwtWidgets enables all classes, that are needed to use the all other +# widgets (sliders, dials, ...), beside QwtPlot. +###################################################################### + +CONFIG += QwtWidgets + +###################################################################### +# If you want to display svg imageson the plot canvas, enable the +# line below. Note that Qwt needs the svg+xml, when enabling +# QwtSVGItem. +###################################################################### + +CONFIG += QwtSVGItem + +###################################################################### +# You can use the MathML renderer of the Qt solutions package to +# enable MathML support in Qwt. # If you want this, copy +# qtmmlwidget.h + qtmmlwidget.cpp to # textengines/mathml and enable +# the line below. +###################################################################### + +#CONFIG += QwtMathML + +###################################################################### +# If you want to build the Qwt designer plugin, +# enable the line below. +# Otherwise you have to build it from the designer directory. +###################################################################### + +# CONFIG += QwtDesigner + +###################################################################### +# If you want to auto build the examples, enable the line below +# Otherwise you have to build them from the examples directory. +###################################################################### + +# CONFIG += QwtExamples |