updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / pyxplot / PKGBUILD
blobc91a0d337a5aab1c454f5b5cb63be909fde2dd90
2 # Maintainer: Gergely Imreh <imrehg(at)gmail(dot)com>
3 pkgname=pyxplot
4 pkgver=0.8.4
5 pkgrel=1
6 pkgdesc="Command-line graphing package with a simple interface that produces publication-quality output."
7 arch=('i686' 'x86_64')
8 license=('GPL2')
9 url="http://www.pyxplot.org.uk/"
10 changelog=${pkgname}.changelog
11 provides=('pyxplot')
12 depends=('texlive-core' 'imagemagick' 'fftw' 'gsl')
13 makedepends=('python2' 'gcc' 'make')
14 optdepends=('python-scipy: mathematical functions'
15             'python-numpy: mathematical functions'
16             'gsl: fitting'
17             'gv:for the X11 terminal'
18             'ggv: PostScript fileds'
19             'cfitsio: reading and writing FITS data')
20 source=("http://www.pyxplot.org.uk/src/${pkgname}_${pkgver}.tar.gz"
21         configure.patch)
22 build() {
23   cd ${srcdir}/${pkgname}-${pkgver}
25   # Patch to fix compilation error as of 0.8.2
26   # - remove linking to ltermcap (depreciated in arch?)
27   # - remove lkpathsea linkin (does not work in arch's version)
28   patch -p0 < ../configure.patch
31   ./configure --prefix=/usr
32   # LDFLAGS to remove harmful -Wl,--as-needed
33   # USRDIR because otherwise it seem to look for help file in wrong directory
34   export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
35   make USRDIR="/usr" || return 1
36   mkdir ${pkgdir}/usr
37   make USRDIR="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man/man1" install || return 1
39   # Remove docs, they weigh too much
40   rm -rf ${pkgdir}/usr/share/doc
42 md5sums=('1546b2773d1a2d87931c597f437da3fd'
43          '60dbae350fbfd30e9b20354fccc30f3f')