summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02f0460cbde0f1db7022f2f5db5157bfcafb4680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Gergely Imreh <imrehg(at)gmail(dot)com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=pyxplot
pkgver=0.9.2
pkgrel=6
pkgdesc="Command-line graphing package with a simple interface that produces publication-quality output."
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.pyxplot.org.uk/"
changelog=${pkgname}.changelog
provides=('pyxplot')
depends=('libxml2' 'texlive-latexextra' 'fftw' 'gsl')
optdepends=('python-scipy: mathematical functions'
	    'python-numpy: mathematical functions'
            'gsl: fitting'
            'gv: viewing PostScript files'
	    'ghostscript: for postscript')
makedepends=('imagemagick' 'ghostscript' 'wget' 'python2')
source=("http://www.pyxplot.org.uk/src/${pkgname}_${pkgver}.tar.gz")
sha256sums=('1c592a0bc77caec445a8d72534471c01d66ca1806309e6c983847c2e0b95e689')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr
  # LDFLAGS to remove harmful -Wl,--as-needed
  # USRDIR because otherwise it seem to look for help file in wrong directory
  export LDFLAGS="${LDFLAGS//-Wl,--as-needed} -lpthread"
  sed -i s+python+python2+ Makefile
  sed -i s+-ltermcap++ Makefile
  make USRDIR="/usr"
}

package() {
  cd ${pkgname}-${pkgver}
  install -d "$pkgdir"/usr
  make USRDIR="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man/man1 install
}