Skip to content

Instantly share code, notes, and snippets.

@Libbum

Libbum/PKGBUILD.Asl

Created Nov 28, 2019
Embed
What would you like to do?
Ipopt 3.13.0
# ASL
pkgname=coinasl
pkgver=1.4.1
pkgrel=1
pkgdesc="COIN-OR autotools harness to build AMPL Solver Library"
arch=('i686' 'x86_64')
url="https://github.com/coin-or-tools/ThirdParty-ASL/"
#license=('')
groups=('coin-or')
depends=('gcc-libs') #Probably others.
makedepends=('gcc-fortran')
source=("https://github.com/coin-or-tools/ThirdParty-ASL/archive/releases/$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "ThirdParty-ASL-releases-$pkgver"
./get.ASL
./configure --prefix=/usr
make
}
check() {
true
}
package() {
cd "ThirdParty-ASL-releases-$pkgver"
PKG_CONFIG_LIBDIR="${pkgdir}/usr/lib/pkgconfig/" \
make DESTDIR="${pkgdir}" install
}
#Ipopt
pkgname=coin-or-ipopt
pkgver=3.13.0
pkgrel=1
pkgdesc="Interior Point OPTimizer"
arch=('i686' 'x86_64')
url="https://github.com/coin-or/Ipopt"
license=('EPL')
groups=('coin-or')
depends=('gcc-libs' 'lapack' 'java-runtime' 'coinasl' 'coinmetis' 'coinmumps')
makedepends=('gcc-fortran' 'wget' 'java-environment' 'graphviz' 'doxygen')
source=("http://www.coin-or.org/download/source/Ipopt/Ipopt-$pkgver.tgz")
sha256sums=('dc392396be28c4a0d49bfab399320cb3f70db5b8f090028a883d826a47744ecf')
build() {
mkdir -p ${srcdir}/build && cd ${srcdir}/build
"../Ipopt-releases-$pkgver/configure" --prefix=/usr \
--with-asl \
--with-mumps \
--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
}
# Metis
pkgname=coinmetis
pkgver=1.3.8
pkgrel=1
pkgdesc="COIN-OR autotools harness to build Metis"
arch=('i686' 'x86_64')
url="https://github.com/coin-or-tools/ThirdParty-Metis/"
#license=('')
groups=('coin-or')
depends=('gcc-libs') #Probably others.
makedepends=('gcc-fortran')
source=("https://github.com/coin-or-tools/ThirdParty-Metis/archive/releases/$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "ThirdParty-Metis-releases-$pkgver"
./get.Metis
./configure --prefix=/usr
make
}
check() {
true
}
package() {
cd "ThirdParty-Metis-releases-$pkgver"
PKG_CONFIG_LIBDIR="${pkgdir}/usr/lib/pkgconfig/" \
make DESTDIR="${pkgdir}" install
}
# Mumps
pkgname=coinmumps
pkgver=1.6.1
pkgrel=1
pkgdesc="COIN-OR autotools harness to build MUMPS"
arch=('i686' 'x86_64')
url="https://github.com/coin-or-tools/ThirdParty-MUMPS/"
#license=('')
groups=('coin-or')
depends=('gcc-libs' 'coinmetis') #Probably others.
makedepends=('gcc-fortran')
source=("https://github.com/coin-or-tools/ThirdParty-Mumps/archive/releases/$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
cd "ThirdParty-Mumps-releases-$pkgver"
./get.Mumps
./configure --prefix=/usr
make
}
check() {
true
}
package() {
cd "ThirdParty-Mumps-releases-$pkgver"
PKG_CONFIG_LIBDIR="${pkgdir}/usr/lib/pkgconfig/" \
make DESTDIR="${pkgdir}" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.