summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 65239baf585445db6333618d40a429fd2caea976 (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
38
39
40
41
42
43
44
45
46
47
# Maintainer: Quan Guo <guotsuan@gmail.com>

pkgname=astroml-examples-git
_gitname=astroML
pkgver=2015.07.15.gb9e783d
pkgrel=1


pkgdesc="AstroML is a Python module for machine learning and data mining built
on numpy, scipy, scikit-learn, and matplotlib. This package includes the
exmaples shipped with the github version of astroML"

url='http://www.astroml.org/'
arch=('any')
license=('BSD-3-Clause')

depends=()

optdepends=('python-astroml' 'python2-astroml')

source=("git+https://github.com/astroML/astroML.git")

conflicts=('astroml-examples' )

md5sums=('SKIP')


pkgver() {
      cd "${srcdir}/${_gitname}"
      git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
}

package() {

  cd "${srcdir}/${_gitname}"

  install -dm755 ${pkgdir}/usr/share/astroML/examples/{algorithms,datasets,learning}
  install -D -m644 examples/algorithms/* \
    ${pkgdir}/usr/share/astroML/examples/algorithms
  install -D -m644 examples/datasets/* \
    ${pkgdir}/usr/share/astroML/examples/datasets
  install -D -m644 examples/learning/* \
    ${pkgdir}/usr/share/astroML/examples/learning
  install -D -m644 examples/README.rst ${pkgdir}/usr/share/astroML/examples

}