blob: cdc3f867f0de6a28bdf7fe1bc5a57a2dbff86fa8 (
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
|
# Maintainer: getzze <getzze at_gmail dot_com>
# Based on python-tslearn PKGBUILD
pkgname=python-tslearn-git
pkgver=r1625.efa0091
pkgrel=1
pkgdesc="A machine learning toolkit dedicated to time-series data. Version from the latest commit."
arch=('x86_64')
url='https://github.com/rtavenar/tslearn'
license=('BSD')
depends=('python' 'python-numpy' 'python-scipy' 'python-numba' 'python-joblib' 'python-scikit-learn')
optdepends=('python-tensorflow' 'python-h5py' 'python-pytorch' 'python-keras-applications' 'python-keras-preprocessing')
makedepends=('git' 'python-setuptools')
provides=('python-tslearn')
conflicts=('python-tslearn')
options=(!emptydirs)
source=("git+https://github.com/rtavenar/tslearn.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/tslearn"
# git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/tslearn"
python setup.py build
}
package() {
cd "$srcdir/tslearn"
python setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|