-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
34 lines (30 loc) · 962 Bytes
/
PKGBUILD
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
# This build follows the standard coin-or-ipopt package in the AUR, but adds HSL to the build.
pkgname=coin-or-ipopt
pkgver=3.14.10
pkgrel=1
pkgdesc="Interior Point OPTimizer"
arch=('i686' 'x86_64')
url="https://github.com/coin-or/Ipopt"
license=('EPL')
groups=('coin-or')
depends=('lapack' 'coin-or-asl' 'coin-or-coinmumps' 'coin-or-coinhsl')
source=("https://github.com/coin-or/Ipopt/archive/releases/${pkgver}.tar.gz")
sha256sums=('b73d705ca05a8fb47392ca7e31c4da81ae7d0eb751767cd04ba2bb19b7f140f9')
build() {
cd "$srcdir"
mkdir -p build && pushd build
"$srcdir/Ipopt-releases-$pkgver/./configure" --prefix=/usr --with-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
}