-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
26 lines (24 loc) · 899 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
# Maintainer: Benoît Allard <[email protected]>
# Maintainer: Daniel Bershatsky <[email protected]>
pkgname=python-cmaes
_pkgname=${pkgname#python-}
pkgver=0.10.0
pkgrel=1
pkgdesc="Lightweight Covariance Matrix Adaptation Evolution Strategy (CMA-ES) implementation for Python 3"
arch=('any')
url="https://github.com/CyberAgent/cmaes"
license=('MIT')
depends=('python-numpy')
optdepends=('python-scipy: Support for CMA-WM.')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/CyberAgent/$_pkgname/archive/v$pkgver.tar.gz")
sha256sums=('d6a5b8e7a25390ba1f83d6426a1f79d9ba3d46d3d82f79e0fb945668f51af1b1')
build() {
python -m build -nw $_pkgname-$pkgver
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir="$pkgdir" \
$_pkgname-$pkgver/dist/$_pkgname-*.whl
}