blob: 56c02ee4243da4c8620270995990ee6a7a7463dd (
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
33
34
35
36
37
38
|
# Maintainer: BenoƮt Allard <benoit.allard@gmx.de>
# Contributor: Oliver Mader <b52@reaktor42.de>
pkgname=libcmaes
pkgver=0.10
pkgrel=2
pkgdesc="libcmaes is a multithreaded C++11 library with Python bindings for high performance blackbox stochastic optimization using the CMA-ES algorithm for Covariance Matrix Adaptation Evolution Strategy."
url="https://github.com/CMA-ES/libcmaes"
arch=('x86_64' 'i686')
license=('LGPLv3')
depends=('gcc-libs')
optdepends=('boost-libs: Python support' 'python-numpy: Python support')
makedepends=('eigen' 'boost' 'python-numpy')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/CMA-ES/${pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('97a8e5b4ccbed04cfa00ad55a0c77c7f')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./autogen.sh
echo "#define CMAES_EXPORT" > include/libcmaes/cmaes_export.h
./configure \
--prefix=/usr \
--with-prefix=/usr \
--with-boost-python=boost_python3 \
--enable-python \
--enable-onlylib
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et:
|