summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75a835cc208d0bf5a9a5406a9c1777bb9bbb65b9 (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
48
49
# Maintainer: Kuldeep Singh Dhaka <kuldeep@madresistor.com>

pkgname=lmfit-git
_pkgname=lmfit
pkgver=269.822d724
pkgrel=1
pkgdesc="Self-contained C library for Levenberg-Marquardt least-squares minimization and curve fitting."
arch=('i686' 'x86_64')
url="http://apps.jcns.fz-juelich.de/doku/sc/$_pkgname"
license=('FreeBSD')
provides=(lmfit)
conflicts=(lmfit)
replaces=(lmfit)
source=("git://apps.jcns.fz-juelich.de/$_pkgname")
depends=()
makedepends=('git')
md5sums=('SKIP')


pkgver() {
  cd "$srcdir/$_pkgname"
  echo "$(git rev-list --count HEAD).$(git describe --always )"
}

prepare() {
  cd "$srcdir/$_pkgname"
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
}

build() {
  cd "$srcdir/$_pkgname"
  # http://askubuntu.com/a/27679
  libtoolize --force
  aclocal
  autoheader
  automake --force-missing --add-missing
  autoconf

  cd "build"
  ../configure --prefix=/usr
  make
}

package() {
  make -C "$srcdir/$_pkgname/build" DESTDIR="${pkgdir}" install
}