2 # Maintainer: Gergely Imreh <imrehg(at)gmail(dot)com>
6 pkgdesc="Command-line graphing package with a simple interface that produces publication-quality output."
9 url="http://www.pyxplot.org.uk/"
10 changelog=${pkgname}.changelog
12 depends=('texlive-core' 'imagemagick' 'fftw' 'gsl')
13 makedepends=('python2' 'gcc' 'make')
14 optdepends=('python-scipy: mathematical functions'
15 'python-numpy: mathematical functions'
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"
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
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')