blob: cef0168fe6d07dbf5d0b2f5f18474d2c170cd4e2 (
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
|
# Maintainer: trougnouf (Benoit Brummer) <trougnouf at gmail dot com>
_name='pycma'
pkgname="python-${_name}-git"
pkgver=r805.c526723
pkgrel=1
pkgdesc="Python implementation of CMA-ES"
provides=(python-${_name})
conflicts=(python-${_name})
url="https://github.com/CMA-ES/${_name}"
depends=('python-numpy')
makedepends=('python-setuptools')
license=('MIT')
arch=('x86_64')
pkgver() {
cd "${srcdir}/$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
source=("git+${url}.git")
sha256sums=('SKIP')
build() {
cd "${srcdir}/${_name}"
sed -i '/^__version__ =/ s/modified//' "cma/__init__.py"
python setup.py build
}
package() {
cd "${srcdir}/${_name}"
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|