summaryrefslogtreecommitdiff
path: root/community/fityk/PKGBUILD
blob: ffd72b248d2dc32b8873bd0e6c12d21f0ebc3fbe (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
39
40
41
42
43
44
45
46
47
# Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Cuneyt Unlu <unlucu AT gmail.com>

pkgname=fityk
pkgver=1.1.1
pkgrel=3
pkgdesc='A program for nonlinear fitting of analytical functions to data.'
arch=('i686' 'x86_64')
url='http://www.unipress.waw.pl/fityk/'
license=('GPL')
depends=('xylib' 'shared-mime-info' 'lua' 'gnuplot') # wxgtk supplied by statically linked wxWidgets
makedepends=('boost' 'git' 'python-sphinx' 'swig' 'subversion')
options=('!libtool')
install='fityk.install'

build() {
  # daily snapshot because fityk requires a version that hasn't been released yet...
  svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets

  cd wxWidgets
  ./configure --prefix=${srcdir}/usr --disable-shared --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys
  make
  make install

  cd ${srcdir}
  git clone git://github.com/wojdyr/fityk.git
  cd fityk
  git checkout v${pkgver}
  #cd ${pkgname}-${pkgver}

  # disable xyconvert because wxwidgets>=2.9 is needed (dev version) and it isn't standard with arch yet
    #--disable-xyconvert \
  ./autogen.sh \
    --prefix=/usr \
    --without-doc \
    --with-wx-prefix=${srcdir}/usr
  #./configure \

  make
}

package() {
  cd fityk

  make DESTDIR=${pkgdir} install
}