mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 23:47:17 +00:00
added qwt5
This commit is contained in:
parent
1b66f563b4
commit
1547766003
@ -18,20 +18,22 @@ md5sums=('6b39ca00645d8557886577e1366deecd'
|
|||||||
'ed9f744d6aa4033797914edc82846452')
|
'ed9f744d6aa4033797914edc82846452')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$srcdir"
|
cd "${srcdir}"
|
||||||
patch -p0 -i "$srcdir/fix-line.patch"
|
patch -p0 -i "${srcdir}/fix-line.patch"
|
||||||
|
|
||||||
|
if [[ -d ${srcdir}/build ]]; then
|
||||||
|
rm -rf "${srcdir}/build"
|
||||||
|
fi
|
||||||
|
mkdir "${srcdir}/build"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/${pkgname}-${pkgver}"
|
cd "${srcdir}/build"
|
||||||
|
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` "../${pkgname}-${pkgver}"
|
||||||
mkdir build && cd build
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ../
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/${pkgname}-${pkgver}/build"
|
cd "${srcdir}/build"
|
||||||
|
make DESTDIR="${pkgdir}/" install
|
||||||
make DESTDIR="$pkgdir/" install
|
|
||||||
}
|
}
|
||||||
|
43
qwt5/PKGBUILD
Normal file
43
qwt5/PKGBUILD
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Maintainer: Evgeniy Alekseev <arcanis.arch at gmail dot com>
|
||||||
|
# Contributor: Eugen Zagorodniy <https://github.com/ezag>
|
||||||
|
# Contributor: Ronald van Haren <ronald at archlinux dot org>
|
||||||
|
# Contributor: Nick Østergaard <oe.nick at gmail dot com>
|
||||||
|
|
||||||
|
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-{} \;
|
||||||
|
}
|
86
qwt5/qwtconfig-archlinux.pri
Normal file
86
qwt5/qwtconfig-archlinux.pri
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user