#Maintainer: Christian Dersch pkgname=qtiplot pkgver=0.9.7.10 pkgrel=1cd arch=x86_64 source=("http://download.berlios.de/qtiplot/qtiplot-0.9.7.10.tar.bz2" "http://download.berlios.de/qtiplot/qtiplot-manual-en.tar.bz2" "build.conf" "qtiplot-0.9.7.10.pro.patch" "qtiplot.desktop" "qtiplot") url=http://soft.proindependent.com/qtiplot.html docs=("gpl_licence.txt" "README.html") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "qtiplot (data analysis and plotting application)" "QtiPlot is a free tool for plotting and data analysis. It is a clone" "of Origin, an often used software for data analysis and plotting." "QtiPlot uses the Qt4 framework, Qwt and QwtPlot3D for the graphical " "parts (GUI, plotting, visualization) and muparser and gsl for parsing" "and calculation." "This package contains the complete QtiPlot manual, location:" "/usr/doc/$pkgname-$pkgver/manual_html/index.html" "" "http://soft.proindependent.com/qtiplot.html" ) build() { sed -i "s%@BASELIBDIR@%lib$LIBDIRSUFFIX%" \ $startdir/src/build.conf || return 1 cd $startdir/src/$pkgname-$pkgver cp $startdir/src/build.conf . patch -p0 < $startdir/src/qtiplot-$pkgver.pro.patch || return 1 qmake -unix PREFIX=/usr -o Makefile qtiplot.pro || return 1 make || return 1 # We have to install QtiPlot manually to get a clean and working # installation. Use the installation method slacky.eu use for # their QtiPlot package. # We have to do this because otherwise the translations will # not work. mkdir -p $startdir/pkg/usr/share/qtiplot install -m 755 qtiplot/qtiplot $startdir/pkg/usr/share/qtiplot install -m 755 qtiplot/qti_wordlist.txt $startdir/pkg/usr/share/qtiplot cp qtiplot/*.py $startdir/pkg/usr/share/qtiplot cp -a -r qtiplot/translations $startdir/pkg/usr/share/qtiplot # Copy libraries/plugins mkdir -p $startdir/pkg/usr/lib$LIBDIRSUFFIX/qtiplot/plugins cp -a fitPlugins/lib* $startdir/pkg/usr/lib$LIBDIRSUFFIX/qtiplot/plugins # Desktop entry and manpage mkdir -p $startdir/pkg/usr/share/applications mkdir -p $startdir/pkg/usr/share/pixmaps mkdir -p $startdir/pkg/usr/man/man1 mkdir -p $startdir/pkg/usr/bin cp -f $startdir/src/qtiplot.desktop $startdir/pkg/usr/share/applications/ cp -f $startdir/src/qtiplot-$pkgver/qtiplot_logo.png \ $startdir/pkg/usr/share/pixmaps/qtiplot.png cp -f $startdir/src/qtiplot-$pkgver/qtiplot.1 $startdir/pkg/usr/man/man1 install -m 755 $startdir/src/qtiplot $startdir/pkg/usr/bin # Copy docs of the 3rdparty libraries mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/liborigin cp -a $startdir/src/qtiplot-$pkgver/3rdparty/liborigin/copying \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/liborigin cp -a $startdir/src/qtiplot-$pkgver/3rdparty/liborigin/readme \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/liborigin mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/QTeXEngine cp -a $startdir/src/qtiplot-$pkgver/3rdparty/QTeXEngine/CHANGES.txt \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/QTeXEngine cp -a $startdir/src/qtiplot-$pkgver/3rdparty/QTeXEngine/README.txt \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/QTeXEngine mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/qwt cp -a $startdir/src/qtiplot-$pkgver/3rdparty/qwt/COPYING \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/qwt cp -a $startdir/src/qtiplot-$pkgver/3rdparty/qwt/README \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/qwt cp -a $startdir/src/qtiplot-$pkgver/3rdparty/qwt/INSTALL \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/qwt mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/qwtplot3d/3rdparty/gl2ps cp -a $startdir/src/qtiplot-$pkgver/3rdparty/qwtplot3d/3rdparty/gl2ps/COPYING* \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/qwtplot3d/3rdparty/gl2ps mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/zlib cp -a $startdir/src/qtiplot-$pkgver/3rdparty/zlib/README.txt \ $startdir/pkg/usr/doc/$pkgname-$pkgver/3rdparty/zlib # Installing manual mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver/manual_html cp -a -r $startdir/src/qtiplot-manual-en/* $startdir/pkg/usr/doc/$pkgname-$pkgver/manual_html } doinst() { if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database /usr/share/mime &> /dev/null fi if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database &> /dev/null fi }