summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a217d96c1b4d470e1a2a7fdabaf25e3b1ee309ee (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: Lumaku <lumaku@mailbox.org>
pkgname=python-dtw-python-git
pkgver=1.1.10.r231
pkgrel=2
pkgdesc="Python port of R's Comprehensive Dynamic Time Warp algorithm package"
arch=('any')
url='https://github.com/DynamicTimeWarping/dtw-python'
license=('GPL3')
depends=('python>=3.6' 'python-numpy' 'python-scipy' 'cython')
makedepends=('git' 'python-setuptools')
provides=('python-dtw-python')
conflicts=("python-dtw-python")
source=(
    "${pkgname}::git+${url}")
md5sums=(
    'SKIP')


pkgver() {
    cd "${pkgname}"
    printf "%s.r%s" "$(python setup.py --version)" "$(git rev-list --count HEAD)"
}


build() {
    cd "${pkgname}"
    python setup.py build
}


package() {
    cd "${pkgname}"
    export PYTHONHASHSEED=0
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}