diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9e717b5eb345 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: James Tappin <jtappinatgmaildotcom> +# Contributor: Gergely Imreh <imrehgATgmailDOTcom> +# Contributor: Eric Belanger <eric@archlinux.org> +pkgname=plplot +pkgver=5.10.0 +pkgrel=4 +pkgdesc="A cross-platform software package for creating scientific plots" +arch=('i686' 'x86_64') +url="http://plplot.sourceforge.net/" +license=("LGPL" "custom") +depends=('libtool' 'tk') +makedepends=('cmake') +optdepends=('qhull: calculating convex hulls' + 'agg: high quality rendering engine in C++' + 'swig: connects Plplot C library to Python, Java and Lua (must be present at compile time for Java)' + 'gd: ability to output png, jpeg and gif files' + 'qt4: display plots, output various formats using the Qt UI framework' + 'wxgtk: displays plots using wxWidgets library' + 'freetype2: enables use of ttf fonts for some drivers' + 'ttf-freefont: enables use of ttf fonts for some drivers' + 'cairo: displays plots and save to different file formats') +options=('!libtool' '!makeflags') +source=(http://downloads.sourceforge.net/sourceforge/plplot/${pkgname}-${pkgver}.tar.gz \ + plplot.patch) + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + patch -p1 < ../../plplot.patch + if [ -d build ]; then + rm -r build + fi + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_octave=off \ + -DENABLE_tcl=ON \ + -DENABLE_tk=ON \ + -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF .. + make +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver}/build + make DESTDIR=${pkgdir} install + install -D -m644 ../Copyright ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} +md5sums=('ece8c0b4d5cd815968a6d56bed0fbe7b' \ + '9a50d8aa4c088bd29355076f6fc91f31') |