summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d9933a67c572e372014c64527e780996a1a9b76 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Maintainer: Kristóf Marussy <kristof@marussy.com>

pkgname=coin-or-couenne
pkgver=0.5.8
pkgrel=2
pkgdesc='Convex Over and Under Envelopes for Nonlinear Estimation'
arch=('x86_64')
url="https://github.com/coin-or/Couenne/"
license=('EPL')
groups=('coin-or')
depends=('coin-or-cbc'
         'coin-or-cgl'
         'coin-or-clp'
         'coin-or-coinutils'
         'coin-or-ipopt'
         'coin-or-osi'
         'coin-or-bonmin'
         'coin-or-asl'
         'coin-or-coinmumps'
         'metis'
         'lapack')
source=("Couenne-${pkgver}.tar.gz::https://github.com/coin-or/Couenne/archive/releases/${pkgver}.tar.gz")
sha256sums=('73b36e7475910f576ca25f8323553b9d5201fcb2656cef0a2c72e69dc0681051')

build() {
    cd "${srcdir}/Couenne-releases-${pkgver}"
    COIN_SKIP_PROJECTS="Sample" \
    CXXFLAGS="${CXXFLAGS} -std=c++11 -I/usr/include/coin -DCOIN_USE_MUMPS_MPI_H" \
    ./configure --prefix=/usr \
                --with-asl-lib="$(pkg-config --libs coinasl)" \
                --with-asl-incdir="/usr/include/coin-or/asl/" \
                --with-blas \
                --with-blas-lib="$(pkg-config --libs blas)" \
                --with-blas-incdir="/usr/include/" \
                --with-lapack \
                --with-lapack-lib="$(pkg-config --libs lapack)" \
                --with-lapack-incdir="/usr/include/" \
                --with-metis-lib="-lmetis" \
                --with-metis-incdir="/usr/include/" \
                --without-hsl \
                --with-mumps-lib="$(pkg-config --libs coinmumps)" \
                --with-mumps-incdir="/usr/include/coin/ThirdParty/" \
                --without-soplex \
                --with-coinutils-lib="$(pkg-config --libs coinutils)" \
                --with-coinutils-incdir="/usr/include/coin/" \
                --with-osi-lib="$(pkg-config --libs osi)" \
                --with-osi-incdir="/usr/include/coin/" \
                --with-clp-lib="$(pkg-config --libs clp)" \
                --with-clp-incdir="/usr/include/coin/" \
                --with-cgl-lib="$(pkg-config --libs cgl)" \
                --with-cgl-incdir="/usr/include/coin/" \
                --with-cbc-lib="$(pkg-config --libs cbc)" \
                --with-cbc-incdir="/usr/include/coin/" \
                --with-ipopt-lib="$(pkg-config --libs ipopt)" \
                --with-ipopt-incdir="/usr/include/coin/" \
                --without-scip \
                --with-bonmin-lib="$(pkg-config --libs bonmin bonminamplinterface)" \
                --with-bonmin-incdir="/usr/include/coin/"
    make
}

package() {
    cd "${srcdir}/Couenne-releases-${pkgver}"
    PKG_CONFIG_LIBDIR="${pkgdir}/usr/lib/pkgconfig/" \
    make DESTDIR="${pkgdir}/" install
}