summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7691b72d19619b5d2985b2ac28fc1293c0f475ce (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
# Submitter: L.G. Sarmiento <lgsarmientop-ala-unal.edu.co>
pkgname=fityk-git
_pkgname=fityk
pkgver=r1713.d3bd1341
pkgrel=1
pkgdesc="A program for nonlinear fitting of analytical functions to data."
url="http://fityk.nieto.pl/"
arch=('x86_64')
license=('GPL2')
depends=('xylib' 'boost' 'lua' 'swig')
makedepends=('git')
optdepends=('gnuplot: can be used with the CLI')
provides=("fityk")
options=('!libtool')
install="fityk.install"
source=($_pkgname::git+https://github.com/wojdyr/fityk.git
       "fityk.install")
md5sums=('SKIP'
         '0f2c2b78511036ea623a9568509bc987')

pkgver() {

  cd ${srcdir}/$_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

build() {

  cd ${srcdir}/$_pkgname

  #it doesn't build with sphinx for python3
  sed -i 's#sphinx-build#sphinx-build2#' doc/Makefile

  ./autogen.sh \
    --prefix=/usr \
    --with-wx-config=/usr/bin/wx-config
  make || return 1

}

package() {

  cd ${srcdir}/${_pkgname}
  make DESTDIR=${pkgdir} install

}