45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: tikysal <tikysal@gmail.com>
|
|
# Derived from Daniel Ehlers'
|
|
|
|
pkgname=coin-or-coinutils
|
|
pkgver=2.11.11
|
|
pkgrel=1
|
|
pkgdesc='COIN-OR collection of utility classes'
|
|
arch=(x86_64 powerpc64le powerpc riscv64)
|
|
url='https://github.com/coin-or/CoinUtils'
|
|
license=(EPL)
|
|
depends=(bzip2
|
|
coin-or-data-sample
|
|
glpk
|
|
lapack
|
|
zlib)
|
|
makedepends=(doxygen
|
|
gcc-fortran)
|
|
groups=(coin-or)
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/coin-or/CoinUtils/archive/refs/tags/releases/$pkgver.tar.gz)
|
|
sha256sums=('27da344479f38c82112d738501643dcb229e4ee96a5f87d4f406456bdc1b2cb4')
|
|
|
|
build() {
|
|
cd CoinUtils-releases-$pkgver
|
|
./configure \
|
|
--build=${CHOST} \
|
|
--prefix=/usr \
|
|
--with-blas-lib='-lblas' \
|
|
--with-lapack-lib='-llapack' \
|
|
--with-glpk-lib='-lglpk' \
|
|
--enable-dependency-linking
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd CoinUtils-releases-$pkgver
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd CoinUtils-releases-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|