blob: 2693f745a929d134e4c2aacf71b0c0ae17de9f71 (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Felix Golatofski <felix.golatofski@gmx.de>
# Contributor: Daniel YC Lin <dlin.tw at gmail>
_base=SYMPHONY
pkgname=coin-or-${_base,,}
pkgver=5.7.0
pkgrel=1
pkgdesc="COIN-OR solver for mixed-integer linear programs (MILPs)"
arch=(i686 x86_64)
url="https://github.com/coin-or/${_base}"
license=(EPL)
depends=(coin-or-cgl)
source=(${_base}-releases-${pkgver}.tar.gz::${url}/archive/releases/${pkgver}.tar.gz)
sha512sums=('9ff99ebba9e58d9b68d2019bd77b67a5b9abc2201fa858fb6a5883fb0421307dbc243cfd9b74b0cececdfc1227ea6a7e8017e45f6fb76a1d4220218c7c8299e3')
build() {
cd ${_base}-releases-${pkgver}/${_base}
COIN_SKIP_PROJECTS="Sample" \
./configure --prefix=/usr \
--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-coinutils-lib="$(pkg-config --libs coinutils)" \
--with-coinutils-incdir="/usr/include/coin/" \
--enable-dependency-linking \
--enable-cbc-parallel
make
}
# check() {
# cd ${_base}-releases-$pkgver/${_base}
# make test
# }
package() {
cd ${_base}-releases-${pkgver}/${_base}
PKG_CONFIG_LIBDIR="${pkgdir}"/usr/lib/pkgconfig/ \
make DESTDIR="${pkgdir}" install
}
|