#!/bin/sh # Heavily based on the Slackware 11.0 SlackBuild # http://soft.proindependent.com/qtiplot.html # Packagers Gohanz ( gohanz@infinito.ii) # http://www.slacky.it # Depends From: # Qwt..............( qwt.sourceforge.net ) # QwtPlot3D........( qwtplot3d.sourceforge.net ) # LibOrigin........( http://sourceforge.net/projects/liborigin/ ) # GSL..............( http://sources.redhat.com/gsl/ ) CWD=`pwd` if ["$TMP" = ""]; then TMP=/tmp fi PKG=$TMP/package-qtiplot NAME=qtiplot VERSION=0.8.8 TARGET=i486 ARCH=${ARCH:-i486} BUILD=1as if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP tar xvjf $CWD/$NAME-$VERSION.tar.bz2 cd $NAME-$VERSION qmake qtiplot.pro make mkdir -p $PKG/usr/doc/$NAME-$VERSION cp README.html $PKG/usr/doc/$NAME-$VERSION cd $CWD cp -a *.SlackBuild slack-desc $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc mkdir -p $PKG/usr/bin cp -f $TMP/$NAME-$VERSION/qtiplot/qtiplot $PKG/usr/bin/qtiplot strip $PKG/usr/bin/qtiplot mkdir -p $PKG/usr/share/applications/ mkdir -p $PKG/usr/share/pixmaps/ cp -f $CWD/qtiplot.desktop $PKG/usr/share/applications/qtiplot.desktop cp -f $CWD/qtiplot.png $PKG/usr/share/pixmaps/qtiplot.png cd $PKG chown -R root:root . requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi