summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 410a21883a715f9aeaffba86813715fa01de1580 (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: Paul Irofti <paul@irofti.net>

pkgname="python-suod-git"
pkgver=r134.560b49a
pkgrel=2
pkgdesc="Scalable Unsupervised Outlier Detection"
url="https://github.com/yzhao062/suod"
depends=('python' 'python-joblib' 'python-matplotlib' 'python-numpy'
    'python-scipy' 'python-scikit-learn' 'python-psutil')
makedepends=('git' 'python-setuptools')
provides=('python-suod')
conflicts=('python-suod')
arch=('any')
license=('BSD')
source=("git+https://github.com/yzhao062/suod.git")
md5sums=('SKIP')

pkgver() {
    cd "suod"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "suod"
    rm examples/__init__.py
}
 
build() {
    cd "suod"
    python setup.py build
}

package() {
  cd "suod"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
# vim:ts=2:sw=2:et: