summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f6f780a651aa0fc196692ed0ab8b6fea047fbfd (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
# Maintainer: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Alexander F. Rødseth <xyproto at archlinux dot org>

pkgname=python-cma
pkgver=4.0.0
pkgrel=1
pkgdesc='The Covariance Matrix Adaptation Evolution Strategy'
arch=(any)
url='https://github.com/CMA-ES/pycma'
license=('MIT')
depends=(python-numpy)
makedepends=(git python-setuptools)
_commit=0086ab4cf70db09917bf4c435258c2aaba769a1f
source=("git+$url#commit=$_commit")
sha256sums=('57063cb86d42cbaf662489b1c58d045019752c2cfcac051d24ce4bdb1ef7f67f')

build() {
  cd ${srcdir}/pycma

  python setup.py build
}

package() {
  cd ${srcdir}/pycma

  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: ts=2 sw=2 et: