diff --git a/colibri-line/PKGBUILD b/colibri-line/PKGBUILD index 11a0749..4567224 100644 --- a/colibri-line/PKGBUILD +++ b/colibri-line/PKGBUILD @@ -18,20 +18,22 @@ md5sums=('6b39ca00645d8557886577e1366deecd' 'ed9f744d6aa4033797914edc82846452') prepare() { - cd "$srcdir" - patch -p0 -i "$srcdir/fix-line.patch" + cd "${srcdir}" + patch -p0 -i "${srcdir}/fix-line.patch" + + if [[ -d ${srcdir}/build ]]; then + rm -rf "${srcdir}/build" + fi + mkdir "${srcdir}/build" } build() { - cd "$srcdir/${pkgname}-${pkgver}" - - mkdir build && cd build - cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../ + cd "${srcdir}/build" + cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` "../${pkgname}-${pkgver}" make } package() { - cd "$srcdir/${pkgname}-${pkgver}/build" - - make DESTDIR="$pkgdir/" install + cd "${srcdir}/build" + make DESTDIR="${pkgdir}/" install } diff --git a/qwt5/PKGBUILD b/qwt5/PKGBUILD new file mode 100644 index 0000000..e6352a3 --- /dev/null +++ b/qwt5/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Evgeniy Alekseev +# Contributor: Eugen Zagorodniy +# Contributor: Ronald van Haren +# Contributor: Nick Østergaard + +pkgname=qwt5 +pkgver=5.2.3 +pkgrel=2 +pkgdesc="Qt Widgets for Technical Applications (version 5.X)" +arch=('i686' 'x86_64') +url="http://qwt.sourceforge.net/" +depends=('qt4') +license=("custom:${pkgname}") +source=("http://downloads.sourceforge.net/sourceforge/qwt/qwt-$pkgver.tar.bz2" \ + "qwtconfig-archlinux.pri") +md5sums=('7d37a11d02bc7d095d0ca6427ec97b8d' + '5d66906ce26a751c3b5573a36c756ddd') + +prepare() { + # copy our config file to the right place + install -Dm644 "${srcdir}/qwtconfig-archlinux.pri" "${srcdir}/qwt-${pkgver}/qwtconfig.pri" +} + +build() { + cd "${srcdir}/qwt-${pkgver}" + qmake-qt4 qwt.pro + make +} + +package() { + cd "${srcdir}/qwt-${pkgver}" + + make INSTALL_ROOT="${pkgdir}" QTDIR=/usr install + # install licence + install -Dm644 "${srcdir}/qwt-${pkgver}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # move html docs to proper place and move man pages to avoid conflict + # with qwt from [extra] + install -d "${pkgdir}/usr/share/doc/${pkgname}" + mv "${pkgdir}/usr/share/html" "${pkgdir}/usr/share/doc/${pkgname}/" + cd "${pkgdir}/usr/share/man/man3" + find * -type f -exec mv {} qwt5-{} \; +} diff --git a/qwt5/qwtconfig-archlinux.pri b/qwt5/qwtconfig-archlinux.pri new file mode 100644 index 0000000..fcd31a5 --- /dev/null +++ b/qwt5/qwtconfig-archlinux.pri @@ -0,0 +1,86 @@ +###################################################################### +# Install paths +###################################################################### + +unix { + INSTALLBASE = /usr +} + +win32 { + INSTALLBASE = C:/Qwt +} + +target.path = $$INSTALLBASE/lib +headers.path = $$INSTALLBASE/include/qwt5 +doc.path = $$INSTALLBASE/share + +###################################################################### +# qmake internal options +###################################################################### + +CONFIG += qt # Also for Qtopia Core! +CONFIG += warn_on +CONFIG += thread + +###################################################################### +# release/debug mode +# The designer plugin is always built in release mode. +# If want to change this, you have to edit designer/designer.pro. +###################################################################### + +CONFIG += release # release/debug +RELEASE_SUFFIX = 5 + +###################################################################### +# 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 images on the plot canvas, enable the +# line below. Note that Qwt needs the svg+xml, when enabling +# QwtSVGItem. +###################################################################### + +CONFIG += QwtSVGItem + +###################################################################### +# If you have a commercial license you can use the MathML renderer +# of the Qt solutions package to enable MathML support in Qwt. +# So 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