#Maintainer: George Vlahavas (vlahavas~at~gmail.com, gapan@zenwalk forums) pkgname=plotdrop pkgver=0.5.2 zenver=52 pkgrel=1 arch=i486 source=("http://icculus.org/~jcspray/plotdrop/plotdrop-0.5.2.tar.gz" "http://users.zenwalk.org/user-accounts/gapan/plotdrop/logscale.patch") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers" "example*") url=http://icculus.org/~jcspray/plotdrop/ options=('norequiredbuilder' 'keepdepfile') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "plotdrop - A minimal frontend to gnuplot" "PlotDrop is designed for quick simple visualisation of 2D data" "series. It is not intended to encompass anywhere near the full" "capabilities of gnuplot. PlotDrop is intended to be used in tandem" "with an external filesystem browser. Data files are added by" "dragging them from the browser to the file list." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i -e 's,PREFIX=/usr/local,PREFIX=/usr,' Makefile # Patch for correct locations sed -i -e 's,-g -Wall,-O2 -march=i486 -mtune=i686 -g -Wall,' Makefile # Patch for scales log transformation patch -p1 < $startdir/src/logscale.patch make || return 1 make install DESTDIR=$startdir/pkg # Fix the desktop entry sed -i -e 's/.png//' $startdir/pkg/usr/share/applications/$NAME.desktop sed -i -e 's/Categories=.*/Categories=Education;Science;DataVisualization;/' $startdir/pkg/usr/share/applications/plotdrop.desktop # Symlink icon mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cd $startdir/pkg/usr/share/icons/hicolor/48x48/apps ln -s ../../../../plotdrop/plotdrop.png plotdrop.png # Remove unwanted dir rm -rf $startdir/pkg/usr/share/pixmaps }