blob: e17249061be4acef49c975c575664beae00e5326 (
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
|
pkgname=coin-or-ipopt
pkgver=3.14.16
pkgrel=2
pkgdesc="Interior Point OPTimizer"
arch=('x86_64')
url="https://github.com/coin-or/Ipopt"
license=('EPL')
groups=('coin-or')
depends=('lapack' 'coin-or-asl' 'coin-or-coinmumps')
source=("https://github.com/coin-or/Ipopt/archive/releases/${pkgver}.tar.gz")
sha256sums=('cc8c217991240db7eb14189eee0dff88f20a89bac11958b48625fa512fe8d104')
build() {
cd "$srcdir"
mkdir -p build && pushd build
"$srcdir/Ipopt-releases-$pkgver/./configure" --prefix=/usr --without-hsl --disable-java
make
}
check() {
cd "$srcdir/build"
make test
}
package() {
cd "$srcdir/build"
PKG_CONFIG_LIBDIR="${pkgdir}/usr/lib/pkgconfig/" \
make DESTDIR="$pkgdir" install
# for compatibility
install -d "$pkgdir/usr/include/coin"
install -m644 "$pkgdir"/usr/include/coin-or/* "$pkgdir"/usr/include/coin
}
|