summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuan Guo2015-07-27 19:17:20 +0200
committerQuan Guo2015-07-27 19:17:20 +0200
commit1d6d583611e9416631860330375cc5927a34eaf5 (patch)
tree64fa1c7c4e0bde960de43c8f26cfd4848f77f69f
parentb1cb73a8782f27e222e54618a793519a8214c167 (diff)
downloadaur-1d6d583611e9416631860330375cc5927a34eaf5.tar.gz
Update to 2015.06.26.g300297c
modify the PKGBUILD for split packges
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD38
2 files changed, 44 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6f456d3a84b..e98cd9a86ca 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,22 @@
-pkgbase = python2-astroml-addons-git
+pkgbase = python-astroml-addons-git
pkgdesc = AstroML addons package contains addon code for the astroML package. AstroML is a Python module for machine learning and data mining built on numpy, scipy, scikit-learn, and matplotlib.
- pkgver = 2013.12.11.gb6d3e97
+ pkgver = 2015.06.26.g300297c
pkgrel = 1
url = http://www.astroml.org/
arch = any
license = BSD-3-Clause
- depends = python2-numpy
- depends = python2-scipy
- depends = python2-scikit-learn
- depends = python2-matplotlib
- depends = python2
- depends = python2-pyfits
+ depends = python-astroml
+ depends = python2-astroml
source = git+https://github.com/astroML/astroML_addons.git
md5sums = SKIP
+pkgname = python-astroml-addons-git
+ depends = python-astroml
+ provides = python-astroml-addons
+ conflicts = python-astroml-addons
+
pkgname = python2-astroml-addons-git
+ depends = python2-astroml
+ provides = python2-astroml-addons
+ conflicts = python2-astroml-addons
diff --git a/PKGBUILD b/PKGBUILD
index 91314f420d6..6e52dd3ae50 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,36 @@
# Maintainer: Quan Guo <guotsuan@gmail.com>
-pkgname=python2-astroml-addons-git
+pkgname=(python-astroml-addons-git python2-astroml-addons-git)
_pkgname=astroML_addons
-pkgver=2013.12.11.gb6d3e97
+pkgver=2015.06.26.g300297c
pkgrel=1
pkgdesc="AstroML addons package contains addon code for the astroML package. 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' 'python2' 'python2-pyfits')
+depends=('python-astroml' 'python2-astroml')
source=("git+https://github.com/astroML/${_pkgname}.git")
md5sums=('SKIP')
+prepare () {
+ cp -a ${_pkgname}{,-py2}
+}
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format="%cd.g%h" --date=short | sed 's/-/./g'
}
-package() {
- cd "${srcdir}/${_pkgname}"
+package_python2-astroml-addons-git() {
+depends=('python2-astroml')
+ conflicts=(python2-astroml-addons)
+ provides=(python2-astroml-addons)
+
+ 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}
@@ -37,3 +43,23 @@ package() {
#install -D -m644 examples/README.rst ${pkgdir}/usr/share/astroML/examples
}
+
+
+package_python-astroml-addons-git() {
+ depends=('python-astroml')
+ conflicts=(python-astroml-addons)
+ provides=(python-astroml-addons)
+
+ cd "${srcdir}/${_pkgname}"
+ python ./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
+
+}