mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
coin-or-symphony: init, depends for r-lpsymphony
This commit is contained in:
parent
ab268a1055
commit
4d4bc50a4a
2 changed files with 62 additions and 0 deletions
48
BioArchLinux/coin-or-symphony/PKGBUILD
Normal file
48
BioArchLinux/coin-or-symphony/PKGBUILD
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: 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.1
|
||||
pkgrel=1
|
||||
pkgdesc="COIN-OR solver for mixed-integer linear programs (MILPs)"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/coin-or/$_base"
|
||||
license=(EPL)
|
||||
depends=(
|
||||
coin-or-cgl
|
||||
coin-or-clp
|
||||
coin-or-coinutils
|
||||
coin-or-osi
|
||||
)
|
||||
source=("$_base-releases-$pkgver.tar.gz::$url/archive/releases/$pkgver.tar.gz")
|
||||
sha512sums=('3367ec0059dd55d5d581daf1ac6d3ce21eaa857bda334b749ee4534fbf6ed36d3f7bcc9484e70bb3ae2e13c6bf0b8bc193ffa606688a20b79fc7d42c69c9603d')
|
||||
|
||||
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
|
||||
# don't link with unused shared libraries
|
||||
sed -E '/SYMPHONYLIB_LIBS = / s/ -l(Cgl|OsiClp|ClpSolver|Clp|cholmod|amd|coinasl|bz2|z|glpk|lapack|blas|m)//g' \
|
||||
-i src/OsiSym/Makefile
|
||||
sed -E '/SYMPHONYLIB_LIBS = / s/ -l(ClpSolver|cholmod|amd|coinasl|bz2|z|glpk|lapack|blas)//g' \
|
||||
-i src/Makefile
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_base-releases-$pkgver/$_base"
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
14
BioArchLinux/coin-or-symphony/lilac.yaml
Normal file
14
BioArchLinux/coin-or-symphony/lilac.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
pre_build_script: |
|
||||
update_pkgver_and_pkgrel(_G.newver)
|
||||
run_cmd(['updpkgsums'])
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
update_on:
|
||||
- source: github
|
||||
github: coin-or/SYMPHONY
|
||||
use_latest_release: true
|
||||
prefix: releases/
|
Loading…
Add table
Reference in a new issue