summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc3dcf807e06b1a6f51661f71cd46a771d760c48 (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
pkgname=optizelle
pkgver=1.2.0
pkgrel=1
pkgdesc="library designed to solve general purpose nonlinear optimization problems"
license=('LGPL')
arch=('i686' 'x86_64')
url="http://www.optimojoe.com/products/optizelle/"
depends=('jsoncpp' 'lapack')
makedepends=('cmake')
source=("https://github.com/OptimoJoe/Optizelle/archive/v$pkgver.tar.gz")
sha256sums=('4a0039561d5209f9864795cad827690970113b2ffff5595535539861fd0842ca')

prepare() {
  cd Optizelle-$pkgver
  curl -L https://github.com/OptimoJoe/Optizelle/pull/60.patch | patch -p1
}

build() {
  cd Optizelle-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_OPENMP=ON .
  make
}

package() {
  cd Optizelle-$pkgver
  make DESTDIR="$pkgdir" install
}