blob: 3187957cb4551d6a5f1aa30c0a430934eca55695 (
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: Oystein Sture <oysstu@gmail.com>
# Contributor:
pkgname=python-climin-git
pkgver=r544.2215b1a
pkgrel=5
epoch=1
pkgdesc="Optimizers for machine learning"
arch=("any")
license=("BSD")
url="https://github.com/BRML/climin"
depends=('python' 'python-numpy' 'python-scipy')
makedepends=('python-setuptools' 'git')
source=("git://github.com/BRML/climin.git")
sha512sums=("SKIP")
prepare() {
# Do not install tests into site-packages root
rm "${srcdir}/climin/test/__init__.py"
}
build() {
cd climin
python setup.py build
}
package() {
cd climin
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
pkgver() {
cd climin
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
|