summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e1c1cf87275611581edbc71788d76aecd149a87 (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
# Maintainer: bipin kumar <kbipinkumar@pm.me>

pkgname=python-pairwisedist
_module=${pkgname#python-}
pkgver=1.3.1
pkgrel=3
pkgdesc='Calculate the pairwise-distance matrix for an array of n samples by p features'
arch=(any)
url="https://github.com/GuyTeichman/pairwisedist"
license=('Apache-2.0')
depends=(
         'python' 
         'python-numpy' 
         'python-scipy' 
         'python-pytest'
        )
makedepends=(
             'python-setuptools' 
             'python-installer' 
             'python-pytest-runner'
            )
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
md5sums=('7fb70febbac6a6b35584ab4c30e41f39')

build() {
    cd "$_module-$pkgver"
    python setup.py build
}

package() {
    cd "$_module-$pkgver"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
    install -Dm644 "$srcdir/$_module-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}