summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae92b433ab9c311a33d0b1c57ce7f1d8c8acb8ab (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
# Maintainer: Nicolas Bizzozzéro <nicolas.bizzozzero@protonmail.com>
pkgname="python-river-git"
pkgver=0.9.0
pkgrel=3
pkgdesc="Online machine learning in Python"
arch=("x86_64")
url="https://riverml.xyz"
license=('custom:BSD 3-clause')
provides=("python-river")
conflicts=("python-river")
depends=("python-numpy" "python-scipy" "python-pandas")
makedepends=("git" "cython")
source=("git://github.com/online-ml/river.git")
sha512sums=("SKIP")

pkgver() {
  cd "${srcdir}/river"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/river"
  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
  
  install -m755 -d "${pkgdir}/usr/share/licenses/python-river-git"
  install -m644 LICENSE "${pkgdir}/usr/share/licenses/python-river-git/" 
}