summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuan Guo2015-07-27 19:39:24 +0200
committerQuan Guo2015-07-27 19:39:24 +0200
commit17f399f9a4246fb1ed01385d3f171ba1654039ec (patch)
tree7ad8df91bdce190b22760f9f84e775d79ce96d41
parent52b0b5acd3998e8cfd2001e151f4df4dbfa5e0f9 (diff)
downloadaur-17f399f9a4246fb1ed01385d3f171ba1654039ec.tar.gz
Add pkgbase to PKBUILD
-rw-r--r--PKGBUILD64
1 files changed, 49 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 67938cc4e0b..1fbeff6f067 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,75 @@
# Maintainer: Quan Guo <guotsuan@gmail.com>
-pkgname=python2-astroml-git
+pkgname=(python-astroml-git python2-astroml-git)
+pkgbase=python-astroml-git
_pkgname=astroML
-pkgver=2015.01.28.g8e1bfcb
+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."
url='http://www.astroml.org/'
arch=('any')
license=('BSD-3-Clause')
-depends=('python2-numpy' 'python2-scipy' 'python2-scikit-learn'
- 'python2-matplotlib')
+
+depends=('python-numpy' 'python2-numpy' 'python-scipy' 'python2-scipy'
+ 'python-scikit-learn' 'python2-scikit-learn' 'python-matplotlib'
+ 'python2-matplotlib')
+
+optdepends=('astroml-examples-git')
source=("git+https://github.com/astroML/astroML.git")
-conflicts=('python2-astroml' 'astroml-examples')
+conflicts=('python2-astroml' )
#provides=('astroml')
md5sums=('SKIP')
+prepare() {
+ cp -a ${_pkgname}{,-py2}
+
+}
+
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
}
-package() {
+package_python-astroml-git() {
+ conflicts=('python-astroml' )
+ optdepends=('astroml-examples-git' 'python-addons-git')
+ provides=('python-astroml')
+
cd "${srcdir}/${_pkgname}"
+ python ./setup.py install --root="${pkgdir}" --prefix=/usr
+
+ #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
+
+}
+
+package_python2-astroml-git() {
+ conflicts=('python2-astroml' )
+ optdepends=('astroml-examples-git' 'python2-addons-git')
+ provides=('python2-astroml')
+
+ cd "${srcdir}/${_pkgname}-py2"
python2 ./setup.py install --root="${pkgdir}" --prefix=/usr
- #python2 ./setup_addons.py install --root="${pkgdir}" --prefix=/usr
- 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
+
+ #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
}
+