updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / hippodraw / PKGBUILD
blob62098baca06d7f1e61e76adf0203c120afb5cf2a
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Sebastien Binet (binet@cern.ch)
4 pkgname=hippodraw
5 pkgver=1.21.3
6 pkgrel=2
7 pkgdesc="A highly interactive data analysis environment written in C++/Qt"
8 arch=('i686' 'x86_64')
9 url="http://www.slac.stanford.edu/grp/ek/hippodraw/"
10 license=('GPL')
11 depends=('qt' 'boost' 'minuit2' 'cfitsio' 'python-numarray' 'python-pyfits')
12 options=('!libtool')
13 source=(ftp://ftp.slac.stanford.edu/users/pfkeb/$pkgname/${pkgname^^[hd]}-$pkgver.tar.gz
14         $pkgname.patch)
15 md5sums=('d4b427b7469af5728951eab8c502074d'
16          '9d46527e305b3d30a6db73c9ea2821ee')
18 build() {
19   cd "$srcdir"/${pkgname^^[hd]}-$pkgver
21   # some fixes
22   sed -i "s_Minuit2Base_Minuit2_" configure
23   sed -i "s_/usr/include/cfitsio_/usr/include_" configure
24   patch -Np0 -i ../$pkgname.patch || return 1
26   # configure
27   LDFLAGS="-fopenmp" ./configure \
28     --prefix=/usr \
29     --disable-help \
30     --with-qt4-dir=/usr \
31     --with-qt4-include=/usr/include \
32     --with-qt4-lib=/usr/lib || return 1
34   # make and install
35   make || return 1
36   make prefix="$pkgdir"/usr install || return 1